---
title: "httpCreateHeader"
canonical: "https://support.appfire.com/space/PSJC/434766083/httpCreateHeader"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Creates an HttpHeader object.

Creates an HttpHeader object.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | httpCreateHeader(key, value) | **Package** | http |
| **Alias** |  | **Pkg Usage** | createHeader(key, value) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| key | String | Yes | The key for the http header. |
| value | String | Yes | The value for the http header. |

## Return Type

**[HttpHeader](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
HttpRequest request;
HttpHeader header = httpCreateHeader("Content-Type", "application/json");
request.headers += header;
```

## See also

> Macro (contentbylabel)