rouille::websocket

Function requested_protocols

Source
pub fn requested_protocols(request: &Request) -> RequestedProtocolsIter 
Expand description

Returns a list of the websocket protocols requested by the client.

§Example

use rouille::websocket;

for protocol in websocket::requested_protocols(&request) {
    // ...
}