---
name: "up.Response.prototype.header"
area: "API"
kind: "Instance method"
parent: "up.Response class"
url: "https://unpoly.com/api/up.Response.prototype.header"
---
<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.header(name)

Returns the HTTP header value with the given name.

The search for the header is case-insensitive.

Returns `null` or `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 | null | undefined

