<!-- 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; [getHeaders](./sip.js.outgoingrequestmessage.getheaders.md)

## OutgoingRequestMessage.getHeaders() method

Get the header/s of the given name.

<b>Signature:</b>

```typescript
getHeaders(name: string): Array<string>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | <code>string</code> | header name |

<b>Returns:</b>

`Array<string>`

Array with all the headers of the specified name.

