app.on()
  • References/JavaScript/Express/Application

app.on('mount', callback(parent)) The mount event is fired on a sub-app, when it is mounted on a parent app. The parent app is

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

req.app This property holds a reference to the instance of the Express application that is using the middleware. If

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

res.headersSent Boolean property that indicates if the app sent HTTP headers for the response.

2025-01-10 15:47:30
Events
  • References/JavaScript/Express/Application

Events

2025-01-10 15:47:30
Error handling
  • References/JavaScript/Express/Guide

Define error-handling middleware functions in the same way as other middleware functions, except error-handling functions have four arguments instead of three: (err,

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

res.redirect([status,] path) Redirects to the URL derived from the specified path, with specified status, a positive

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.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.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
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