---
url: /process-functions/http-headersadd.md
description: Adds a header to the http requests that follow.
---

# http.headersAdd&#x20;

::: warning Deprecated
Pass headers to [`web.get`](/process-functions/web-get) and the other `web` functions instead.
:::

Adds a header to the `http` requests that follow, until [http.headersClear](/process-functions/http-headersclear) is called.

```js
http.headersAdd(key, value)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `key` | `string` | The header's name. |
| `value` | `string` | The header's value. |

## Examples

```js
http.headersAdd("Token", "1");
```
