Struct parsip::Response [] [src]

pub struct Response<'headers, 'buf: 'headers> {
    pub version: Option<SipVersion>,
    pub code: Option<u16>,
    pub reason: Option<&'buf str>,
    pub headers: &'headers mut [Header<'buf>],

A parsed Response.

See Request docs for explanation of optional values.


The response version, such as SIP/2.0.

The response code, such as 200.

The response reason-phrase, such as OK.

The response headers.


impl<'h, 'b> Response<'h, 'b>

Creates a new Response using a slice of Headers you have allocated.

Try to parse a buffer of bytes into this Response.

Status-Line     =  SIP-Version SP Status-Code SP Reason-Phrase CRLF

Trait Implementations

impl<'headers, 'buf: 'headers> Debug for Response<'headers, 'buf>

Formats the value using the given formatter.

impl<'headers, 'buf: 'headers> PartialEq for Response<'headers, 'buf>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.