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

req.secure A Boolean property that is true if a TLS connection is established. Equivalent to:

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

req.xhr A Boolean property that is true if the request’s X-Requested-With header field is “XMLHttpRequest”, indicating

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

app.route(path) Returns an instance of a single route, which you can then use to handle HTTP verbs with optional middleware. Use app.route()

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

app.enabled(name) Returns true if the setting name is enabled (true), where name is one

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

app.disabled(name) Returns true if the Boolean setting name is disabled (false), where name

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

app.path() Returns the canonical path of the app, a string. var

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
Moving to Express 5
  • References/JavaScript/Express/Guide

Overview Express 5.0 is still in the alpha release stage, but here is a preview of the changes that will be in the release

2025-01-10 15:47:30