Static mime_guess::impl_::MIME_TYPES
source · pub static MIME_TYPES: &[(&str, &[&str])]
Expand description
A mapping of known file extensions and their MIME types.
Required to be sorted lexicographically by extension for ease of maintenance.
Multiple MIME types per extension are supported; the order is arbitrary but the first should be the most prevalent by most recent RFC declaration or explicit succession of other media types.
NOTE: when adding or modifying entries, please include a citation in the commit message. If a media type for an extension changed by official IETF RFC, please keep the old entry but add the new one before it in the slice literal, e.g.:
- ("md", &["text/x-markdown"]),
+ ("md", &["text/markdown", "text/x-markdown"]),
Sourced from: https://github.com/samuelneff/MimeTypeMap/blob/master/src/MimeTypes/MimeTypeMap.cs https://github.com/jshttp/mime-db extracted with https://gist.github.com/soyuka/b7e29d359b2c14c21bdead923c01cc81