Struct httparse::Response [] [src]

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]

[src]

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

[src]

Try to parse a buffer of bytes into this Response.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

[src]

This method tests for !=.