Function proxy_protocol::parse [−][src]
pub fn parse(buf: &mut impl Buf) -> Result<ProxyHeader, Error>
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.