up.Request.prototype.header(name)
Instance method
Returns the HTTP request header value with the given name.
Returns undefined if the given header name will not be sent with this request.
Note
For implementation reasons, the search for the header is case-sensitive.
Parameters
name
required
The case-sensitive name.
Type: string
Return value
The value of the header.
Type: string | undefined