pub fn protocols(&self) -> Vec<&str> {
		self.request
		    .headers
		    .get(SEC_WEBSOCKET_PROTOCOL)
		    .map(|e| {
			str::from_utf8(e.as_bytes())
				.unwrap()
				.split(',')
				.filter_map(|x| match x.trim() {
					"" => None,
					y => Some(y),
				})
				.collect::<Vec<&str>>()
		})
		    .unwrap_or(vec![])
	}
/// A list of protocols requested from the client.
A list of protocols requested from the client.
A list of protocols requested from the client .
pub fn protocols(&self) -> Vec<&str> {
		self.request
		    .headers
		    .get(SEC_WEBSOCKET_PROTOCOL)
		    .map(|e| {
			str::from_utf8(e.as_bytes())
				.unwrap()
				.split(',')
				.filter_map(|x| match x.trim() {
					"" => None,
					y => Some(y),
				})
				.collect::<Vec<&str>>()
		})
		    .unwrap_or(vec![])
	}
pub fn protocols ( & self ) -> Vec < & str > { self . request . headers . get ( SEC_WEBSOCKET_PROTOCOL ) . map ( | e | { str :: from_utf8 ( e . as_bytes ( ) ) . unwrap ( ) . split ( ',' ) . filter_map ( | x | match x . trim ( ) { " " => None , y => Some ( y ) , } ) . collect :: < Vec < & str > > ( ) } ) . unwrap_or ( vec ! [ ] ) }
A list of protocols requested from the client.
A list of protocols requested from the client .
&self
&self