The app object conventionally denotes the Express application.
Cookie Options
Cookie Options
Fast, unopinionated, minimalist web framework
Fast, unopinionated, minimalist web framework
4.14.0
https://www.npmjs.com/package/express
File Transfer Options
File Transfer Options
Express Http Request
Express Http Request
The Response object represents the HTTP response that an Express app sends when it gets an HTTP request.
The Response object represents the HTTP response that an Express app sends when it gets an HTTP request. In this documentation and by convention, the object is always referred to as res (and the HTTP request is req) but its actual name is determined by the parameters to the callback function in which you’re working.
A router object is an isolated instance of middleware and routes.
A router object is an isolated instance of middleware and routes. You can think of it as a “mini-application,” capable only of performing middleware and routing functions. Every Express application has a built-in app router.
A router behaves like middleware itself, so you can use it as an argument to app.use() or as the argument to another router’s use() method.
The top-level express object has a Router() method that creates a new router object.
Router Options
Router Options
Static Options
Static Options
Application Companion
Express Singleton
Express Singleton
Http Request Companion
Http Response Companion
The app object conventionally denotes the Express application. Create it by calling the top-level express() function exported by the Express module.
http://expressjs.com/en/api.html