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
FAQ
  • References/JavaScript/Express/Getting started

How should I structure my application? There is no definitive answer to this question. The answer

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

express.Router([options]) Creates a new router object. var router

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.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
router.param()
  • References/JavaScript/Express/Router

router.param(name, callback) Adds callback triggers to route parameters, where name is the name of the parameter and callback

2025-01-10 15:47:30