Skip to content

http-server-request-handlers/empty-favicon

Repository files navigation

http-server-request-handlers-empty-favicon

NPM version Build Status Coverage Status NSP Status

an http.Server request handler that handles requests for /favicon.ico.

when a request is made to /favicon.ico this middleware will return an empty favicon.

table of contents

installation

npm install http-server-request-handlers-empty-favicon

api

/**
 * @param {IncomingMessage} req
 * @param {string} [req.url]
 *
 * @param {ServerResponse} res
 * @param {Function} res.send
 * @param {Function} res.setHeader
 *
 * @param {Function} next
 *
 * @returns {*}
 */
function faviconRequestHandler( req, res, next )

usage

basic

var express = require( 'express' )
var app = express()
var emptyFavicon = require( 'http-server-request-handlers-empty-favicon' )

app.use( emptyFavicon )

license

MIT License

About

an http.Server request handler that handles requests for favicon.ico

Resources

License

Stars

Watchers

Forks

Packages

No packages published