rustmax::hyper::client::conn::http1

Function handshake

Source
pub async fn handshake<T, B>(
    io: T,
) -> Result<(SendRequest<B>, Connection<T, B>), Error>
where T: Read + Write + Unpin, B: Body + 'static, <B as Body>::Data: Send, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
Expand description

Returns a handshake future over some IO.

This is a shortcut for Builder::new().handshake(io). See client::conn for more.