<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [OutgoingRequestMessage](./sip.js.outgoingrequestmessage.md) &gt; [getHeader](./sip.js.outgoingrequestmessage.getheader.md)

## OutgoingRequestMessage.getHeader() method

Get the value of the given header name at the given position.

<b>Signature:</b>

```typescript
getHeader(name: string): string | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | <code>string</code> | header name |

<b>Returns:</b>

`string | undefined`

Returns the specified header, undefined if header doesn't exist.

