pub fn header(&self, name: &str) -> Option<&str> {
        self.headers.header(name)
            .and_then(|s| std::str::from_utf8(s).ok())
            .and_then(|s| Some(s.trim()))
    }
/// The header value for the given name, or None if not found.
///
/// For historical reasons, the HTTP spec allows for header values
/// to be encoded using encodigs like iso-8859-1. Such encodings
/// means the values are not possible to interpret as utf-8.
///
/// In case the header value can't be read as utf-8, this function
/// returns `None` (while the name is visible in [`Response::headers_names()`]).
The header value for the given name, or None if not found.
For historical reasons, the HTTP spec allows for header values
to be encoded using encodigs like iso-8859-1. Such encodings
means the values are not possible to interpret as utf-8.

In case the header value can't be read as utf-8, this function
returns `None` (while the name is visible in [`Response::headers_names()`]).
The header value for the given name or None if not found . For historical reasons the HTTP spec allows for header values to be encoded using encodigs like iso - 8859 - 1 . Such encodings means the values are not possible to interpret as utf - 8 . In case the header value can ' t be read as utf - 8 this function returns ` None ` ( while the name is visible in [ ` Response :: headers_names () ` ] ) .
pub fn header(&self, name: &str) -> Option<&str> {
        self.headers.header(name)
            .and_then(|s| std::str::from_utf8(s).ok())
            .and_then(|s| Some(s.trim()))
    }
pub fn header ( & self , name : & str ) -> Option < & str > { self . headers . header ( name ) . and_then ( | s | std :: str :: from_utf8 ( s ) . ok ( ) ) . and_then ( | s | Some ( s . trim ( ) ) ) }
The header value for the given name, or None if not found.
The header value for the given name or None if not found .
&self
name
&str
&self
name
&str