/// Check if the given header has the given value (case-insensitive).
Check if the given header has the given value (case-insensitive).
Check if the given header has the given value ( case - insensitive ) .
pub fn header_is_ignore_case(&self, name: &str, value: &str) -> bool {
        self.find_first(name)
            .ok_or(())
            .and_then(|val_raw| from_utf8(val_raw).map_err(|_| ()))
            .map(|val| val.eq_ignore_ascii_case(value))
            .unwrap_or(false)
    }
pub fn header_is_ignore_case ( & self , name : & str , value : & str ) -> bool { self . find_first ( name ) . ok_or ( ( ) ) . and_then ( | val_raw | from_utf8 ( val_raw ) . map_err ( | _ | ( ) ) ) . map ( | val | val . eq_ignore_ascii_case ( value ) ) . unwrap_or ( false ) }
Check if the given header has the given value (case-insensitive).
Check if the given header has the given value ( case - insensitive ) .
&self
name
&str
value
&str