O'Reilly logo
  • Patrick S thinks this is interesting:

The middleware function takes the following arguments:

  • The request object: This is a wrapper on top of the request parameter found in Node's http.createServer function, with added functionalities
  • The response object: This is another wrapper that extends the response parameter found in Node's http.createServer funct...

From

Cover of Mastering Web Application Development with Express

Note

Middleware arguments