async_tungstenite::handshake

Function client_handshake

source
pub(crate) async fn client_handshake<F, S>(
    stream: S,
    f: F,
) -> Result<(WebSocketStream<S>, Response), HandshakeError<ClientHandshake<AllowStd<S>>>>