pub fn requested_protocols(request: &Request) -> RequestedProtocolsIterNotable traits for RequestedProtocolsIterimpl Iterator for RequestedProtocolsIter    type Item = String;
Expand description

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

Example

use rouille::websocket;

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