<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [IncomingMessage](./sip.js.incomingmessage.md) &gt; [addHeader](./sip.js.incomingmessage.addheader.md)

## IncomingMessage.addHeader() method

Insert a header of the given name and value into the last position of the header array.

<b>Signature:</b>

```typescript
addHeader(name: string, value: string): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | <code>string</code> | header name |
|  value | <code>string</code> | header value |

<b>Returns:</b>

`void`

