---
name: "up.Response.prototype.getHeader"
area: "API"
kind: "Instance method"
parent: "up.Response class"
visibility: "deprecated"
url: "https://unpoly.com/api/up.Response.prototype.getHeader"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Response class](https://unpoly.com/api/up.Response.md)</nav>

# up.Response.prototype.getHeader(name)

**This feature has been deprecated**. Use [`up.Response#header`](https://unpoly.com/api/up.Response.prototype.header.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) 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 {#parameters}

### name {#name}

(required)

Type: string

---

## Return value {#return-value}

The value of the header.

Type: string | undefined

