pub fn header_is(&self, name: &str, value: &str) -> bool {
        self.find_first(name)
            .map(|v| v == value.as_bytes())
            .unwrap_or(false)
    }
/// Check if the given header has the given value.
Check if the given header has the given value.
Check if the given header has the given value .
pub fn header_is(&self, name: &str, value: &str) -> bool {
        self.find_first(name)
            .map(|v| v == value.as_bytes())
            .unwrap_or(false)
    }
pub fn header_is ( & self , name : & str , value : & str ) -> bool { self . find_first ( name ) . map ( | v | v == value . as_bytes ( ) ) . unwrap_or ( false ) }
Check if the given header has the given value.
Check if the given header has the given value .
&self
name
&str
value
&str
&self
name
&str
value
&str