Function mime_guess::get_mime_type [−][src]
pub fn get_mime_type(search_ext: &str) -> Mime
Get the MIME type associated with a file extension.
If there is no association for the extension, or ext
is empty,
application/octet-stream
is returned.