Type Definitions
Middleware(req, res, next)
A Connect-style middleware function. It either responds to the request by
writing to res, or calls next to pass control to
the next middleware in the stack.
Parameters:
| Name | Type | Description |
|---|---|---|
req |
http.IncomingMessage | The incoming request, a Node.js
http.IncomingMessage.
Its |
res |
http.ServerResponse | The response, a Node.js
http.ServerResponse.
Write to it (e.g. |
next |
function | Passes control to the next middleware.
Call it with no arguments to continue; call it with an |