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