<!-- 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)

## IncomingMessage class

Incoming message.

<b>Signature:</b>

```typescript
export declare class IncomingMessage 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [body](./sip.js.incomingmessage.body.md) |  | <code>string</code> |  |
|  [callId](./sip.js.incomingmessage.callid.md) |  | <code>string</code> |  |
|  [cseq](./sip.js.incomingmessage.cseq.md) |  | <code>number</code> |  |
|  [data](./sip.js.incomingmessage.data.md) |  | <code>string</code> |  |
|  [from](./sip.js.incomingmessage.from.md) |  | <code>NameAddrHeader</code> |  |
|  [fromTag](./sip.js.incomingmessage.fromtag.md) |  | <code>string</code> |  |
|  [headers](./sip.js.incomingmessage.headers.md) |  | <code>{</code><br/><code>        [name: string]: Array&lt;{</code><br/><code>            parsed?: any;</code><br/><code>            raw: string;</code><br/><code>        }&gt;;</code><br/><code>    }</code> |  |
|  [method](./sip.js.incomingmessage.method.md) |  | <code>string</code> |  |
|  [referTo](./sip.js.incomingmessage.referto.md) |  | <code>string &#124; undefined</code> |  |
|  [to](./sip.js.incomingmessage.to.md) |  | <code>NameAddrHeader</code> |  |
|  [toTag](./sip.js.incomingmessage.totag.md) |  | <code>string</code> |  |
|  [via](./sip.js.incomingmessage.via.md) |  | <code>{</code><br/><code>        host: string;</code><br/><code>        port: number;</code><br/><code>    }</code> |  |
|  [viaBranch](./sip.js.incomingmessage.viabranch.md) |  | <code>string</code> |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [addHeader(name, value)](./sip.js.incomingmessage.addheader.md) |  | Insert a header of the given name and value into the last position of the header array. |
|  [getHeader(name)](./sip.js.incomingmessage.getheader.md) |  | Get the value of the given header name at the given position. |
|  [getHeaders(name)](./sip.js.incomingmessage.getheaders.md) |  | Get the header/s of the given name. |
|  [hasHeader(name)](./sip.js.incomingmessage.hasheader.md) |  | Verify the existence of the given header. |
|  [parseHeader(name, idx)](./sip.js.incomingmessage.parseheader.md) |  | Parse the given header on the given index. |
|  [s(name, idx)](./sip.js.incomingmessage.s.md) |  | Message Header attribute selector. Alias of parseHeader. |
|  [setHeader(name, value)](./sip.js.incomingmessage.setheader.md) |  | Replace the value of the given header by the value. |
|  [toString()](./sip.js.incomingmessage.tostring.md) |  |  |

