Edit this page

up.Response up.Response.prototype.getHeader(name)
Class method

This feature has been deprecated. Use up.Response#header instead.

Load unpoly-migrate.js to polyfill deprecated features.

Returns the HTTP header value with the given name.

The search for the header name is case-insensitive.

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


Parameters

name string

Return value

stringorundefined

The value of the header.