Function mime_guess::get_mime_type_str
source ยท pub fn get_mime_type_str(search_ext: &str) -> Option<&'static str>
๐Deprecated since 2.0.0: use
from_ext(search_ext).first_raw()
insteadExpand description
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.