Edit this page

up.Response up.Response.prototype.header(name)
Instance method

Returns the HTTP header value with the given name.

The search for the header is case-insensitive.

Returns undefined if the given header name was not included in the response.


Parameters

name
required
string

Return value

The value of the header.

stringundefined