pub fn parse_request<'b, 'h>(
buf: &'b [u8],
hs: &'h mut [Header<'b>],
lim: &Limits,
) -> Result<Status<Request<'b, 'h>>, Error>Expand description
Parses a whole request head from the start of buf into hs.
Returns Partial until the head is complete; limits are enforced on partial input too. The
parse never allocates. For input that arrives in pieces, RequestParser avoids parsing
the same bytes again until a head can be complete.