Files
expressjs.com/_includes/api/en/3x/req-header.md
Douglas Christopher Wilson faa6bb9e0a Apply StandardJS style to API docs
2019-05-26 22:47:09 -04:00

315 B

req.get(field)

Get the case-insensitive request header field. The "Referrer" and "Referer" fields are interchangeable.

req.get('Content-Type')
// => "text/plain"

req.get('content-type')
// => "text/plain"

req.get('Something')
// => undefined

p Aliased as req.header(field).