Edit this page

up.Request 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 string

The case-sensitive name.

Return value

string|undefined

The value of the header.