pub fn is_upgrade_request<B>(request: &Request<B>) -> bool
Expand description

Check if a request is a websocket upgrade request.

If the Upgrade header lists multiple protocols, this function returns true if of them are "websocket", If the server supports multiple upgrade protocols, it would be more appropriate to try each listed protocol in order.