Function hyper::client::conn::handshake [−][src]
pub async fn handshake<T>(
io: T
) -> Result<(SendRequest<Body>, Connection<T, Body>)> where
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
This is supported on crate feature
client
and (crate features http1
or http2
) only.Expand description
Returns a handshake future over some IO.
This is a shortcut for Builder::new().handshake(io)
.