Function read_proxy_header

Source
pub async fn read_proxy_header<I>(
    stream: I,
) -> Result<(I, Option<SocketAddr>, Option<SocketAddr>), Error>
where I: AsyncRead + Unpin,
Expand description

Reads the PROXY protocol header from the given AsyncRead.