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

req.hostname Contains the hostname derived from the Host HTTP header. When the trust proxy

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

req.params This property is an object containing properties mapped to the named route “parameters”. For example, if you have the route

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

req.is(type) Returns true if the incoming request’s “Content-Type” HTTP header field matches the MIME type specified by the type

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

req.ips When the trust proxy setting does not evaluate to false, this property contains an array of IP addresses specified

2025-01-10 15:47:30