http-server-request-handlers-empty-favicon
v0.1.1
Published
an http.Server request handler that handles requests for favicon.ico
Downloads
3
Maintainers
Readme
http-server-request-handlers-empty-favicon
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 )