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 string

Return value

string|undefined

The value of the header.