http-server-request-handlers-not-found

0.1.1 • Public • Published

http-server-request-handlers-not-found

NPM version Build Status Coverage Status NSP Status

an http.Server request handler that handles a situation where no request handler processed the IncomingMessage

table of contents

notes

  • expects next() to be a callable function that accepts an Error as its first parameter

installation

npm install http-server-request-handlers-not-found

api

/**
 * @param {IncomingMessage} req
 * @param {ServerResponse} res
 * @param {Function} next
 *
 * @returns {undefined}
 */
function notFoundRequestHandler( req, res, next )

usage

basic

var express = require( 'express' )
var app = express()

// add as the next to last middelware handler, just before completing the IncomingRequest
// e.g., just before http-server-request-handlers-error-logger
app.use( require( 'http-server-request-handlers-not-found' ) )

license

MIT License

Package Sidebar

Install

npm i http-server-request-handlers-not-found

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

25.7 kB

Total Files

15

Last publish

Collaborators

  • dentous