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

app.engine(ext, callback) Registers the given template engine callback as ext. By

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

app.delete(path, callback [, callback ...]) Routes HTTP DELETE requests to the specified path with the specified callback functions. For more

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
req.fresh
  • References/JavaScript/Express/Request

req.fresh Indicates whether the request is “fresh.” It is the opposite of req.stale. It is true

2025-01-10 15:47:30
Security updates
  • References/JavaScript/Express/Guide

Node.js vulnerabilities directly affect Express. Therefore keep

2025-01-10 15:47:30
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
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.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
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