pub fn version(&self) -> Option<WebSocketVersion> {
		match self.request.headers.get("Sec-WebSocket-Version") {
			Some(value) => Some(WebSocketVersion::from_str(value.to_str().unwrap()).unwrap()),
			_ => None,
		}
	}
/// The client's websocket version.
The client's websocket version.
The client ' s websocket version .
pub fn version(&self) -> Option<WebSocketVersion> {
		match self.request.headers.get("Sec-WebSocket-Version") {
			Some(value) => Some(WebSocketVersion::from_str(value.to_str().unwrap()).unwrap()),
			_ => None,
		}
	}
pub fn version ( & self ) -> Option < WebSocketVersion > { match self . request . headers . get ( " " ) { Some ( value ) => Some ( WebSocketVersion :: from_str ( value . to_str ( ) . unwrap ( ) ) . unwrap ( ) ) , _ => None , } }
The client's websocket version.
The client ' s websocket version .
&self
&self