pub fn parse(buf: &mut impl Buf) -> Result<ProxyHeader, ParseError>
Expand description
Parse a PROXY header from the given buffer.
NOTE: The buffer must have a continuous representation of the inner data available through Buf::chunk, at the very least for the header. Data that follows may be chunked as you wish.