rocket::http::hyper::h1

Function parse_request

Source
pub fn parse_request<R>(
    buf: &mut BufReader<R>,
) -> Result<Incoming<(Method, RequestUri)>, Error>
where R: Read,
Expand description

Parses a request into an Incoming message head.