Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.86 KB

sip.js.body.md

File metadata and controls

26 lines (16 loc) · 1.86 KB

Home > sip.js > Body

Body interface

Message body.

Signature:

export interface Body 

Remarks

https://tools.ietf.org/html/rfc3261\#section-7.4

Properties

Property Modifiers Type Description
content string Requests, including new requests defined in extensions to this specification, MAY contain message bodies unless otherwise noted. The interpretation of the body depends on the request method. For response messages, the request method and the response status code determine the type and interpretation of any message body. All responses MAY include a body. https://tools.ietf.org/html/rfc3261\#section-7.4
contentDisposition string If the Content-Disposition header field is missing, bodies of Content-Type application/sdp imply the disposition "session", while other content types imply "render". https://tools.ietf.org/html/rfc3261\#section-13.2.1 For backward-compatibility, if the Content-Disposition header field is missing, the server SHOULD assume bodies of Content-Type application/sdp are the disposition "session", while other content types are "render". https://tools.ietf.org/html/rfc3261\#section-20.11
contentType string The Content-Type header field indicates the media type of the message-body sent to the recipient. The Content-Type header field MUST be present if the body is not empty. If the body is empty, and a Content-Type header field is present, it indicates that the body of the specific type has zero length (for example, an empty audio file). https://tools.ietf.org/html/rfc3261\#section-20.15