hyper::proto::h2::client

Function handshake

Source
pub(crate) async fn handshake<T, B, E>(
    io: T,
    req_rx: Receiver<Request<B>, Response<Incoming>>,
    config: &Config,
    exec: E,
    timer: Time,
) -> Result<ClientTask<B, E, T>>
where T: Read + Write + Unpin, B: Body + 'static, B::Data: Send + 'static, E: Http2ClientConnExec<B, T> + Unpin, B::Error: Into<Box<dyn Error + Send + Sync>>,