Edit this page

up.Request up.Request.prototype.header(name)
Class 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

stringorundefined

The value of the header.