Function actix_web::ws::handshake[][src]

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

Prepare WebSocket handshake response.

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