---
title: "HTTP Headers | Speedscale Docs"
description: "Learn how to configure HTTP header assertions in Speedscale to validate the presence of specific headers in your API responses. This documentation provides detailed guidelines and examples to effectively implement and utilize these assertions for improved API performance and reliability."
canonical: "https://docs.speedscale.com/reference/configuration/assertions/assert-http-headers/"
---

[Documentation index](https://docs.speedscale.com/reference/llms.txt) | [Markdown](https://docs.speedscale.com/reference/configuration/assertions/assert-http-headers/index.md) | [Canonical page](https://docs.speedscale.com/reference/configuration/assertions/assert-http-headers/)

# HTTP Headers

Compare the runtime value to the expected value for HTTP cookies.

This assertion checks the headers of an HTTP response and checks whether they match the expected value.

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

### Example[](https://docs.speedscale.com/reference/configuration/assertions/assert-http-headers/#example)

```javascript
{ 
  "type": "httpHeaders",
  "config": {
    "headers": "content-encoding,content-type"
  }
}
```

<a id="configuration-"></a>

### Configuration[](https://docs.speedscale.com/reference/configuration/assertions/assert-http-headers/#configuration)

| Key | Description |
| --- | --- |
| **headers** | Comma-separated headers that will be compared at replay time. |
