---
title: "http_res_header | Speedscale Docs"
description: "Extract HTTP headers from response portions using the http_res_header function in Speedscale, including options for handling multiple headers."
canonical: "https://docs.speedscale.com/guides/transformation/extractors/http_res_header/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/transformation/extractors/http_res_header/index.md) | [Canonical page](https://docs.speedscale.com/guides/transformation/extractors/http_res_header/)

# http\_res\_header

<a id="purpose"></a>

### Purpose

**http\_res\_header** extracts an HTTP header from the response portion of the RRPair.

<a id="usage"></a>

### Usage

```json
"type": "http_res_header",
"config": {
    "name": "<header>",
    "index": 0
}
```

*   **name** - the case-sensitive name of the HTTP header to extract
*   **index** - (optional) specifies the query parameter when multiple query parameters with the same name are present. (zero indexed, defaults to 0)

If the header does not exist it will be created.

<a id="example"></a>

### Example

```json
"type": "http_res_header",
"config": {
    "name": "Content-Type"
}
```
