Function actix_web::ws::handshake

source ·
pub fn handshake<S>(
    req: &HttpRequest<S>
) -> Result<HttpResponseBuilder, HandshakeError>
Expand description

Prepare WebSocket handshake response.

This function returns handshake HttpResponse, ready to send to peer. It does not perform any IO.