[][src]Struct httparse::Response

pub struct Response<'headers, 'buf: 'headers> {
    pub version: Option<u8>,
    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.

Fields

The response version, such as HTTP/1.1.

The response code, such as 200.

The response reason-phrase, such as OK.

The response headers.

Methods

impl<'h, 'b> Response<'h, 'b>
[src]

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

Try to parse a buffer of bytes into this Response.

Trait Implementations

impl<'headers, 'buf: 'headers> PartialEq<Response<'headers, 'buf>> for Response<'headers, 'buf>
[src]

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

This method tests for !=.

impl<'headers, 'buf: 'headers> Debug for Response<'headers, 'buf>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'headers, 'buf> Send for Response<'headers, 'buf>

impl<'headers, 'buf> Sync for Response<'headers, 'buf>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more