pub trait HeaderMapExt {
fn header_eq(&self, key: &HeaderName, value: &[u8]) -> bool;
fn header_contains_str(&self, key: &HeaderName, value: &str) -> bool;
}
Expand description
Helper methods for working with HeaderMap
.
Required methods
Check if a header is equal to a bytes array. Ignores casing.
fn header_contains_str(&self, key: &HeaderName, value: &str) -> bool
fn header_contains_str(&self, key: &HeaderName, value: &str) -> bool
Check if a header contains a string. Ignores casing for the header value.