pub fn header(&self, key: String) -> Option<String> {
        self.headers.get(key).map(|v| {
            v.as_bytes()
                .iter()
                .map(|&byte| byte as char)
                .collect::<String>()
        })
    }
/// Returns an `Option<String>` based on the value of header present in headers.
/// `header` returns None if the header with key is not found.
Returns an `Option` based on the value of header present in headers.
`header` returns None if the header with key is not found.
Returns an ` Option ` based on the value of header present in headers . ` header ` returns None if the header with key is not found .
pub fn header(&self, key: String) -> Option<String> {
        self.headers.get(key).map(|v| {
            v.as_bytes()
                .iter()
                .map(|&byte| byte as char)
                .collect::<String>()
        })
    }
pub fn header ( & self , key : String ) -> Option < String > { self . headers . get ( key ) . map ( | v | { v . as_bytes ( ) . iter ( ) . map ( | & byte | byte as char ) . collect :: < String > ( ) } ) }
Returns an `Option<String>` based on the value of header present in headers.
Returns an ` Option<String > ` based on the value of header present in headers .
&self
key
String