pub fn get_mime_extensions_str(
mime_str: &str,
) -> Option<&'static [&'static str]>
Expand description
Get a list of known extensions for a MIME type string.
Ignores parameters (only searches <main type>/<subtype>
). Case-insensitive.
Returns None
if the MIME type is unknown.
§Wildcards
If the top-level of the MIME type is a wildcard (*
), returns all extensions.
If the sub-level of the MIME type is a wildcard, returns all extensions for the top-level.
§Panics
If mime_str
is not a valid MIME type specifier (naive).