Crow  0.3
A C++ microframework for the web
mime_types.h
1 //This file is generated from nginx/conf/mime.types using nginx_mime2cpp.py
2 #include <unordered_map>
3 #include <string>
4 
5 namespace crow {
6 
7 #ifdef CROW_MAIN
8  std::unordered_map<std::string, std::string> mime_types {
9  {"shtml", "text/html"},
10  {"htm", "text/html"},
11  {"html", "text/html"},
12  {"css", "text/css"},
13  {"xml", "text/xml"},
14  {"gif", "image/gif"},
15  {"jpg", "image/jpeg"},
16  {"jpeg", "image/jpeg"},
17  {"js", "application/javascript"},
18  {"atom", "application/atom+xml"},
19  {"rss", "application/rss+xml"},
20  {"mml", "text/mathml"},
21  {"txt", "text/plain"},
22  {"jad", "text/vnd.sun.j2me.app-descriptor"},
23  {"wml", "text/vnd.wap.wml"},
24  {"htc", "text/x-component"},
25  {"png", "image/png"},
26  {"svgz", "image/svg+xml"},
27  {"svg", "image/svg+xml"},
28  {"tiff", "image/tiff"},
29  {"tif", "image/tiff"},
30  {"wbmp", "image/vnd.wap.wbmp"},
31  {"webp", "image/webp"},
32  {"ico", "image/x-icon"},
33  {"jng", "image/x-jng"},
34  {"bmp", "image/x-ms-bmp"},
35  {"woff", "font/woff"},
36  {"woff2", "font/woff2"},
37  {"ear", "application/java-archive"},
38  {"war", "application/java-archive"},
39  {"jar", "application/java-archive"},
40  {"json", "application/json"},
41  {"hqx", "application/mac-binhex40"},
42  {"doc", "application/msword"},
43  {"pdf", "application/pdf"},
44  {"ai", "application/postscript"},
45  {"eps", "application/postscript"},
46  {"ps", "application/postscript"},
47  {"rtf", "application/rtf"},
48  {"m3u8", "application/vnd.apple.mpegurl"},
49  {"kml", "application/vnd.google-earth.kml+xml"},
50  {"kmz", "application/vnd.google-earth.kmz"},
51  {"xls", "application/vnd.ms-excel"},
52  {"eot", "application/vnd.ms-fontobject"},
53  {"ppt", "application/vnd.ms-powerpoint"},
54  {"odg", "application/vnd.oasis.opendocument.graphics"},
55  {"odp", "application/vnd.oasis.opendocument.presentation"},
56  {"ods", "application/vnd.oasis.opendocument.spreadsheet"},
57  {"odt", "application/vnd.oasis.opendocument.text"},
58  {"pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
59  {"xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
60  {"docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
61  {"wmlc", "application/vnd.wap.wmlc"},
62  {"7z", "application/x-7z-compressed"},
63  {"cco", "application/x-cocoa"},
64  {"jardiff", "application/x-java-archive-diff"},
65  {"jnlp", "application/x-java-jnlp-file"},
66  {"run", "application/x-makeself"},
67  {"pm", "application/x-perl"},
68  {"pl", "application/x-perl"},
69  {"pdb", "application/x-pilot"},
70  {"prc", "application/x-pilot"},
71  {"rar", "application/x-rar-compressed"},
72  {"rpm", "application/x-redhat-package-manager"},
73  {"sea", "application/x-sea"},
74  {"swf", "application/x-shockwave-flash"},
75  {"sit", "application/x-stuffit"},
76  {"tk", "application/x-tcl"},
77  {"tcl", "application/x-tcl"},
78  {"crt", "application/x-x509-ca-cert"},
79  {"pem", "application/x-x509-ca-cert"},
80  {"der", "application/x-x509-ca-cert"},
81  {"xpi", "application/x-xpinstall"},
82  {"xhtml", "application/xhtml+xml"},
83  {"xspf", "application/xspf+xml"},
84  {"zip", "application/zip"},
85  {"dll", "application/octet-stream"},
86  {"exe", "application/octet-stream"},
87  {"bin", "application/octet-stream"},
88  {"deb", "application/octet-stream"},
89  {"dmg", "application/octet-stream"},
90  {"img", "application/octet-stream"},
91  {"iso", "application/octet-stream"},
92  {"msm", "application/octet-stream"},
93  {"msp", "application/octet-stream"},
94  {"msi", "application/octet-stream"},
95  {"kar", "audio/midi"},
96  {"midi", "audio/midi"},
97  {"mid", "audio/midi"},
98  {"mp3", "audio/mpeg"},
99  {"ogg", "audio/ogg"},
100  {"m4a", "audio/x-m4a"},
101  {"ra", "audio/x-realaudio"},
102  {"3gp", "video/3gpp"},
103  {"3gpp", "video/3gpp"},
104  {"ts", "video/mp2t"},
105  {"mp4", "video/mp4"},
106  {"mpg", "video/mpeg"},
107  {"mpeg", "video/mpeg"},
108  {"mov", "video/quicktime"},
109  {"webm", "video/webm"},
110  {"flv", "video/x-flv"},
111  {"m4v", "video/x-m4v"},
112  {"mng", "video/x-mng"},
113  {"asf", "video/x-ms-asf"},
114  {"asx", "video/x-ms-asf"},
115  {"wmv", "video/x-ms-wmv"},
116  {"avi", "video/x-msvideo"}
117  };
118 #else
119  extern std::unordered_map<std::string, std::string> mime_types;
120 #endif
121 }