res.status()
  • References/JavaScript/Express/Response

res.status(code) Sets the HTTP status for the response. It is a chainable alias of Node’s

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
res.jsonp()
  • References/JavaScript/Express/Response

res.jsonp([body]) Sends a JSON response with JSONP support. This method is identical to res.json(), except that it opts-in to JSONP

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
res.sendStatus()
  • References/JavaScript/Express/Response

res.sendStatus(statusCode) Sets the response HTTP status code to statusCode and send its string representation as the response

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
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.sendFile()
  • References/JavaScript/Express/Response

res.sendFile(path [, options] [, fn]) res.sendFile() is supported by Express v4.8.0 onwards

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

res.download(path [, filename] [, fn]) Transfers the file at path as an “attachment”. Typically, browsers will prompt the user

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

res.send([body]) Sends the HTTP response. The body parameter can be a Buffer object

2025-01-10 15:47:30