(&self)
| 140 | impl WebSocketUpgrade { |
| 141 | #[inline] |
| 142 | pub fn protocol(&self) -> Option<&RequestSecWebsocketProtocol> { |
| 143 | self.requested_protocol.as_ref() |
| 144 | } |
| 145 | |
| 146 | /// Select a subprotocol from the ones provided, and prepare a response for the client. |
| 147 | pub fn select_protocol<S, P>( |