Function tungstenite::handshake::derive_accept_key

source ยท
pub fn derive_accept_key(request_key: &[u8]) -> String
Expand description

Derive the Sec-WebSocket-Accept response header from a Sec-WebSocket-Key request header.

This function can be used to perform a handshake before passing a raw TCP stream to WebSocket::from_raw_socket.