pub fn is_upgrade_request<B>(request: &Request<B>) -> bool
Returns whether the request asks for an upgrade to the WebSocket protocol.