rama::http::core::client::conn::http2

Function handshake

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

Returns a handshake future over some IO.

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