tungstenite::handshake::client

Function generate_request

Source
pub fn generate_request(request: Request) -> Result<(Vec<u8>, String)>
Expand description

Verifies and generates a client WebSocket request from the original request and extracts a WebSocket key from it.