Function rouille::websocket::requested_protocols [−][src]
pub fn requested_protocols(request: &Request) -> RequestedProtocolsIterⓘNotable traits for RequestedProtocolsIter
impl Iterator for RequestedProtocolsIter type Item = String;
Returns a list of the websocket protocols requested by the client.
Example
use rouille::websocket; for protocol in websocket::requested_protocols(&request) { // ... }