@@ -57,17 +57,50 @@ utf8_mime_const!(CSS, "CSS", "text", "css");
57
57
utf8_mime_const ! ( HTML , "HTML" , "text" , "html" ) ;
58
58
utf8_mime_const ! ( PLAIN , "Plain text" , "text" , "plain" ) ;
59
59
utf8_mime_const ! ( XML , "XML" , "application" , "xml" ) ;
60
+ utf8_mime_const ! ( RSS , "RSS Feed" , "application" , "rss+xml" ) ;
61
+ utf8_mime_const ! ( ATOM , "Atom Feed" , "application" , "atom+xml" ) ;
60
62
mime_const ! ( ANY , "matching anything" , "*" , "*" ) ;
61
63
mime_const ! ( JSON , "JSON" , "application" , "json" ) ;
62
- mime_const ! ( SVG , "SVG" , "image" , "svg+xml" ) ;
63
- mime_const ! ( PNG , "PNG images" , "image" , "png" ) ;
64
- mime_const ! ( JPEG , "JPEG images" , "image" , "jpeg" ) ;
65
64
mime_const ! ( SSE , "Server Sent Events" , "text" , "event-stream" ) ;
66
65
mime_const ! ( BYTE_STREAM , "byte streams" , "application" , "octet-stream" ) ;
67
66
mime_const ! ( FORM , "forms" , "application" , "x-www-form-urlencoded" ) ;
68
67
mime_const ! ( MULTIPART_FORM , "multipart forms" , "multipart" , "form-data" ) ;
69
68
mime_const ! ( WASM , "webassembly" , "application" , "wasm" ) ;
69
+
70
+ // Images
71
+ // https://www.iana.org/assignments/media-types/media-types.xhtml#image
72
+ mime_const ! ( BMP , "BMP images" , "image" , "bmp" ) ;
73
+ mime_const ! ( JPEG , "JPEG images" , "image" , "jpeg" ) ;
74
+ mime_const ! ( PNG , "PNG images" , "image" , "png" ) ;
75
+ mime_const ! ( SVG , "SVG" , "image" , "svg+xml" ) ;
76
+ mime_const ! ( WEBP , "WebP images" , "image" , "webp" ) ;
77
+
78
+ // Audio
79
+ // https://www.iana.org/assignments/media-types/media-types.xhtml#audio
80
+ mime_const ! ( MIDI , "MIDI audio" , "audio" , "midi" ) ;
81
+ mime_const ! ( MP3 , "MPEG audio layer 3" , "audio" , "mpeg" ) ;
82
+ mime_const ! ( OGG , "Ogg vorbis audio" , "audio" , "ogg" ) ;
83
+ mime_const ! ( OPUS , "Opus audio" , "audio" , "opus" ) ;
84
+ mime_const ! ( M4A , "MPEG audio layer 4" , "audio" , "mp4" ) ;
85
+
86
+ // Video
87
+ // https://www.iana.org/assignments/media-types/media-types.xhtml#video
88
+ mime_const ! ( MP4 , "MPEG video layer 4" , "video" , "mp4" ) ;
89
+ mime_const ! ( MPEG , "MPEG video" , "video" , "mpeg" ) ;
90
+ mime_const ! ( WEBM , "WebM video" , "video" , "webm" ) ;
91
+ mime_const ! ( AVI , "Microsoft AVI video" , "video" , "x-msvideo" ) ;
70
92
// There are multiple `.ico` mime types known, but `image/x-icon`
71
93
// is what most browser use. See:
72
94
// https://en.wikipedia.org/wiki/ICO_%28file_format%29#MIME_type
73
95
mime_const ! ( ICO , "ICO icons" , "image" , "x-icon" ) ;
96
+
97
+ // Fonts
98
+ // https://www.iana.org/assignments/media-types/media-types.xhtml#font
99
+ mime_const ! ( OTF , "OTF" , "font" , "otf" ) ;
100
+ mime_const ! ( TTF , "TTF" , "font" , "ttf" ) ;
101
+ mime_const ! ( WOFF , "WOFF" , "font" , "woff" ) ;
102
+ mime_const ! ( WOFF2 , "WOFF2" , "font" , "woff2" ) ;
103
+
104
+ // Archives
105
+ mime_const ! ( ZIP , "Zip archive" , "application" , "zip" ) ;
106
+ mime_const ! ( SEVENZIP , "7Zip archive" , "application" , "x-7z-compressed" ) ;
0 commit comments