Function actix_web_actors::ws::handshake[][src]

pub fn handshake(
    req: &HttpRequest
) -> 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.