Function handshake
pub fn handshake<B, C>(
connection: C,
config: Config,
scope: impl Into<WeakScope>,
) -> Result<(SendRequest<B, C>, Driver<C>), Error>where
C: Connection,Available on crate features
http-backend and http and quic and std only.Expand description
Prepare a client connection. The returned driver must be run concurrently.
Application data is sent only after handshake confirmation. The QUIC endpoint
must allow at least three peer unidirectional streams.
ALPN is required unless the connection extensions explicitly carry
rama_net::tls::AlpnPolicy::OutOfBandAgreement for a known HTTP/3 peer.