[][src]Function oc_http::http

pub async fn http<S>(stream: &mut S) -> Result<Request> where
    S: AsyncBufRead + Unpin

Parses a stream for the http request; this does not parse the body at all, so it will remain entirely intact in stream.

There are currently some hard-coded limits on the number of headers and length of each header. The length is limited by the size of MAX_HEADER_LENGTH, and the number if limited by MAX_HEADERS.