Skip to main content

handshake

Function handshake 

pub fn handshake<C>(
    connection: C,
    config: Config,
) -> Result<(Connection<C>, Driver<C>), Error>
where C: Connection,
Available on crate features http-backend and http and std only.
Expand description

Prepare the server side of an established QUIC connection. ALPN is required unless Config::server_alpn_policy permits out-of-band agreement. This server setting is not published in connection or request extensions.