Skip to main content

parse

Function parse 

Source
pub fn parse(buf: &[u8]) -> Result<(ProxyInfo, usize), ParseError>
Expand description

Parse a Proxy Protocol header (v1 or v2) from a byte slice

Returns the parsed ProxyInfo and the number of bytes consumed.

§Errors