res.end([data] [, encoding]) Ends the response process. This method actually comes from Node core, specifically the
req.acceptsCharsets(charset [, ...]) Returns the first accepted charset of the specified character sets, based on the request’s Accept-Charset
This is essentially going to be the simplest Express app you can create. It is a single file app — not what you’d get if you use the
Express uses the debug module internally to log information about route matches, middleware
res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
app.mountpath The app.mountpath property contains one or more path patterns on which a sub-app was mounted.
req.baseUrl The URL path on which a router instance was mounted. The req.baseUrl property is similar
req.body Contains key-value pairs of data submitted in the request body. By default, it is undefined, and is populated when you
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. Pass
router.route(path) Returns an instance of a single route which you can then use to handle HTTP verbs with optional middleware. Use router
Page 1 of 11