Function hreq_h1::server::handshake[][src]

pub fn handshake<S>(io: S) -> Connection<S> where
    S: AsyncRead + AsyncWrite + Unpin + 'static, 

“handshake” to create a connection.

See module level doc for an example.