Skip to main content

synthesize_ws_key

Function synthesize_ws_key 

Source
fn synthesize_ws_key() -> String
Expand description

Generates a fresh Sec-WebSocket-Key (16 random bytes, base64) for the upstream HTTP/1.1 handshake when the client came in over HTTP/2 and thus never sent one.