req.fresh Indicates whether the request is “fresh.” It is the opposite of req.stale. It is true
req.method Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so
req.protocol Contains the request protocol string: either http or (for TLS requests) https. When
req.accepts(types) Checks if the specified content types are acceptable, based on the request’s Accept HTTP header field. The method
req.xhr A Boolean property that is true if the request’s X-Requested-With header field is “XMLHttpRequest”, indicating
req.hostname Contains the hostname derived from the Host HTTP header. When the trust proxy
req.secure A Boolean property that is true if a TLS connection is established. Equivalent to:
req.params This property is an object containing properties mapped to the named route “parameters”. For example, if you have the route
req.is(type) Returns true if the incoming request’s “Content-Type” HTTP header field matches the MIME type specified by the type
req.ips When the trust proxy setting does not evaluate to false, this property contains an array of IP addresses specified
Page 2 of 3