req.accepts(types) Checks if the specified content types are acceptable, based on the request’s Accept HTTP header field. The method
res.clearCookie(name [, options]) Clears the cookie specified by name. For details about the options object, see
req.protocol Contains the request protocol string: either http or (for TLS requests) https. When
res.attachment([filename]) Sets the HTTP response Content-Disposition header field to “attachment”. If a filename
res.vary(field) Adds the field to the Vary response header, if it is not there already.
req.method Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so
router.all(path, [callback, ...] callback) This method is just like the router.METHOD() methods, except that it matches all HTTP
app.get(path, callback [, callback ...]) Routes HTTP GET requests to the specified path with the specified callback functions. For more information
router.METHOD(path, [callback, ...] callback) The router.METHOD() methods provide the routing functionality in Express, where METHOD
res.locals An object that contains response local variables scoped to the request, and therefore available only to the view(s) rendered during
Page 6 of 11