Skip to main content

classify

Function classify 

Source
pub fn classify(content_type: Option<&str>, body: &str) -> Media
Expand description

Classify a body using its Content-Type header if available, else by sniffing the first non-whitespace bytes.