actix_http::ws

Function handshake_response

source
pub fn handshake_response(req: &RequestHead) -> ResponseBuilder
Expand description

Create WebSocket handshake response.

This function returns handshake Response, ready to send to peer.