Struct httparse::Request [] [src]

pub struct Request<'headers, 'buf> {
    pub method: Option<&'buf str>,
    pub path: Option<&'buf str>,
    pub version: Option<u8>,
    pub headers: &'headers mut [Header<'buf>],
}

Fields

method
path
version
headers

Methods

impl<'h, 'b> Request<'h, 'b>

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

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