pub fn get_mime_extensions(mime: &Mime) -> Option<&'static [&'static str]>
Expand description
Get a list of known extensions for a given Mime
.
Ignores parameters (only searches with <main type>/<subtype>
). Case-insensitive (for extension types).
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.