Function handshake

Source
pub async fn handshake<ARW>(
    stream: &mut ARW,
    host: &str,
    port: u16,
    request_headers: &HeaderMap,
    read_buf: &mut [u8],
) -> Result<HandshakeOutcome>
where ARW: AsyncRead + AsyncWrite + Unpin,