req.accepts()
  • References/JavaScript/Express/Request

req.accepts(types) Checks if the specified content types are acceptable, based on the request’s Accept HTTP header field. The method

2025-01-10 15:47:30
res.clearCookie()
  • References/JavaScript/Express/Response

res.clearCookie(name [, options]) Clears the cookie specified by name. For details about the options object, see

2025-01-10 15:47:30
req.protocol
  • References/JavaScript/Express/Request

req.protocol Contains the request protocol string: either http or (for TLS requests) https. When

2025-01-10 15:47:30
res.attachment()
  • References/JavaScript/Express/Response

res.attachment([filename]) Sets the HTTP response Content-Disposition header field to “attachment”. If a filename

2025-01-10 15:47:30
res.vary()
  • References/JavaScript/Express/Response

res.vary(field) Adds the field to the Vary response header, if it is not there already.

2025-01-10 15:47:30
req.method
  • References/JavaScript/Express/Request

req.method Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so

2025-01-10 15:47:30
router.all()
  • References/JavaScript/Express/Router

router.all(path, [callback, ...] callback) This method is just like the router.METHOD() methods, except that it matches all HTTP

2025-01-10 15:47:30
app.get()
  • References/JavaScript/Express/Application

app.get(path, callback [, callback ...]) Routes HTTP GET requests to the specified path with the specified callback functions. For more information

2025-01-10 15:47:30
router.METHOD()
  • References/JavaScript/Express/Router

router.METHOD(path, [callback, ...] callback) The router.METHOD() methods provide the routing functionality in Express, where METHOD

2025-01-10 15:47:30
res.locals
  • References/JavaScript/Express/Response

res.locals An object that contains response local variables scoped to the request, and therefore available only to the view(s) rendered during

2025-01-10 15:47:30