Function mime_guess::get_mime_type_str[][src]

pub fn get_mime_type_str(search_ext: &str) -> Option<&'static str>

Get the MIME type string associated with a file extension. Case-insensitive.

If search_ext is not already lowercase, it will be converted to lowercase to facilitate the search.

Returns None if search_ext is empty or an associated extension was not found.