req.originalUrl req.url is not a native Express property, it is inherited from Node’s
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
res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. Pass
req.signedCookies When using cookie-parser middleware
req.acceptsCharsets(charset [, ...]) Returns the first accepted charset of the specified character sets, based on the request’s Accept-Charset
Adding the capability to connect databases to Express apps is just a matter of loading an appropriate Node.js driver for the database in your app. This document briefly explains
Use the application generator tool, express-generator, to quickly create an application skeleton. Install express-generator
res.end([data] [, encoding]) Ends the response process. This method actually comes from Node core, specifically the
res.links(links) Joins the links provided as properties of the parameter to populate the response’s Link HTTP header
Page 2 of 11