Skip to main content

accept_has_mime

Function accept_has_mime 

Source
pub fn accept_has_mime(accept: Option<&str>, mime: &str) -> bool
Expand description

True when the given Accept header value lists mime (parameters such as ;q= are ignored; matching is case-insensitive).