Function detect_content_type

Source
pub fn detect_content_type(
    path: Option<&Path>,
    content: Option<&str>,
) -> ContentType
Expand description

Detect content type from extension or content