router.METHOD(path, [callback, ...] callback) The router.METHOD() methods provide the routing functionality in Express, where METHOD
req.method Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so
res.jsonp([body]) Sends a JSON response with JSONP support. This method is identical to res.json(), except that it opts-in to JSONP
router.all(path, [callback, ...] callback) This method is just like the router.METHOD() methods, except that it matches all HTTP
res.vary(field) Adds the field to the Vary response header, if it is not there already.
express.Router([options]) Creates a new router object. var router
app.get(path, callback [, callback ...]) Routes HTTP GET requests to the specified path with the specified callback functions. For more information
How should I structure my application? There is no definitive answer to this question. The answer
res.sendStatus(statusCode) Sets the response HTTP status code to statusCode and send its string representation as the response
req.protocol Contains the request protocol string: either http or (for TLS requests) https. When
Page 6 of 11