Skip to main content

ws_subprotocols

Function ws_subprotocols 

Source
pub fn ws_subprotocols(headers: &HeaderMap) -> Vec<String>
Expand description

Parse the Sec-WebSocket-Protocol request header into its comma-separated tokens. Used to negotiate the codec / detect the h2ts subprotocol at handshake time.