[][src]Function http_header::header::parse_request

pub fn parse_request<'a, 'b: 'a>(
    bytes: &'b [u8]
) -> Result<(RequestHeader<'a>, &'b [u8]), HttpError>

Parses a HTTP request header from bytes

Returns the header and the remaining body data in bytes if any ((header, body_data))