Struct httparse::Response [] [src]

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

Fields

version
code
reason
headers

Methods

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

fn new(headers: &'h mut [Header<'b>]) -> Response<'h, 'b>

fn parse(&mut self, buf: &'b [u8]) -> Result<Status<usize>, Error>