Skip to main content

parse_request_header

Function parse_request_header 

Source
pub fn parse_request_header(
    frame: &[u8],
) -> Result<(BrowserRequest, usize), BrowserProtocolError>
Expand description

Parse a complete request without copying its binary content.

The returned offset identifies the first content byte in frame.

ยงErrors

Returns an error for malformed JSON, invalid lengths, or exceeded bounds.