express-after-end
express middleware for taking action after a request has ended
Quickstart
$ npm install --save express-after-end
Then, in your application:
var express = ;var afterEnd = var app = app app app app;
api
afterEnd(fn, [before=false])
fn
is the function to call on the request end
event; it is called using with the following signature:
function fn (req, res) {
// ...
}
before
determines whether fn
will be invoked before the next end
handler or after. The default is after,
resulting in FIFO ordering of invokations.
?
Questions / comments / concerns? --> @knksmith57