res.sendStatus(statusCode) Sets the response HTTP status code to statusCode and send its string representation as the response
How should I structure my application? There is no definitive answer to this question. The answer
app.get(path, callback [, callback ...]) Routes HTTP GET requests to the specified path with the specified callback functions. For more information
res.clearCookie(name [, options]) Clears the cookie specified by name. For details about the options object, see
req.accepts(types) Checks if the specified content types are acceptable, based on the request’s Accept HTTP header field. The method
express.Router([options]) Creates a new router object. var router
res.attachment([filename]) Sets the HTTP response Content-Disposition header field to “attachment”. If a filename
res.status(code) Sets the HTTP status for the response. It is a chainable alias of Node’s
res.vary(field) Adds the field to the Vary response header, if it is not there already.
router.param(name, callback) Adds callback triggers to route parameters, where name is the name of the parameter and callback
Page 6 of 11