Function rouille::websocket::requested_protocols
source · [−]pub fn requested_protocols(request: &Request) -> RequestedProtocolsIterⓘNotable 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) {
// ...
}