---
name: "X-Up-Title"
area: "API"
kind: "HTTP header"
parent: "up.protocol module"
url: "https://unpoly.com/api/X-Up-Title"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.protocol module](https://unpoly.com/api/up.protocol.md)</nav>

# X-Up-Title

The server may set this optional response header to change the document title after a fragment update.

The title must be encoded as a [relaxed JSON](https://unpoly.com/api/relaxed-json.md) string.

Without this header Unpoly will extract the `<title>` from the server response.

This header is useful when you [optimize your response](https://unpoly.com/learn/optimizing-responses.md) to not render the application layout unless targeted. When your shortened response no longer includes a `<title>`, you can instead use this HTTP header to pass the document title.

> #### Important
>
> HTTP headers [may only contain US-ASCII (7-bit) characters](https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4). If you have higher code points in a JSON value, you may [encode those characters using Unicode escape sequences](https://makandracards.com/makandra/536174-http-headers-can-only-transport-us-ascii-characters-safely).

## Example {#example}

```http
X-Up-Title: "Playlist browser"
```

Note that the quotes must be included in the JSON-encoded header value.

