Function handshake
pub async fn handshake<T, B>(
scope: WeakScope,
io: T,
) -> Result<(SendRequest<B>, Connection<T, B>), Error>Available on crate features
http-backend and http and std only.Expand description
Returns a handshake future over some IO.
This is a shortcut for Builder::new(scope).handshake(io).
See client::conn for more.
§Errors
Returns an error if the HTTP/2 connection handshake fails.