fn content_encoding(&self) -> Result<Vec<ContentEncoding>, HttpError> {
        for header in &self.headers {
            if header.name.as_str().to_ascii_lowercase() == "content-encoding" {
                let mut encodings = vec![];
                for value in header.value.as_str().split(',') {
                    let encoding = ContentEncoding::parse(value.trim())?;
                    encodings.push(encoding);
                }
                return Ok(encodings);
            }
        }
        Ok(vec![])
    }
/// Returns list of content encoding from HTTP response headers.
///
/// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
Returns list of content encoding from HTTP response headers.
Returns list of content encoding from HTTP response headers .
fn content_encoding(&self) -> Result<Vec<ContentEncoding>, HttpError> {
        for header in &self.headers {
            if header.name.as_str().to_ascii_lowercase() == "content-encoding" {
                let mut encodings = vec![];
                for value in header.value.as_str().split(',') {
                    let encoding = ContentEncoding::parse(value.trim())?;
                    encodings.push(encoding);
                }
                return Ok(encodings);
            }
        }
        Ok(vec![])
    }
fn content_encoding ( & self ) -> Result < Vec < ContentEncoding > , HttpError > { for header in & self . headers { if header . name . as_str ( ) . to_ascii_lowercase ( ) == " " { let mut encodings = vec ! [ ] ; for value in header . value . as_str ( ) . split ( ',' ) { let encoding = ContentEncoding :: parse ( value . trim ( ) ) ? ; encodings . push ( encoding ) ; } return Ok ( encodings ) ; } } Ok ( vec ! [ ] ) }
Returns list of content encoding from HTTP response headers.
Returns list of content encoding from HTTP response headers .
&self