Function mime_guess::get_mime_extensions_str
source · [−]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).