rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
content_types.h
1 /* Copyright (C) 2012-2013 Justin Berger
2  The full license is available in the LICENSE file at the root of this project and is also available at http://opensource.org/licenses/MIT. */
3 
4 #pragma once
5 #include <string>
6 
7 namespace rikitiki {
8  namespace ContentType {
9  enum t {
10  DEFAULT = -2,
11  ALL = -1,
12  application_atom_xml,
13  application_ecmascript,
14  application_EDI_X12,
15  application_EDIFACT,
16  application_json,
17  application_javascript,
18  application_octet_stream,
19  application_ogg,
20  application_pdf,
21  application_postscript,
22  application_rdf_xml,
23  application_rss_xml,
24  application_soap_xml,
25  application_font_woff,
26  application_xhtml_xml,
27  application_xml,
28  application_xml_dtd,
29  application_xop_xml,
30  application_zip,
31  application_gzip,
32 
33  audio_basic,
34  audio_L24,
35  audio_mp4,
36  audio_mpeg,
37  audio_ogg,
38  audio_vorbis,
39  audio_vnd_rn_realaudio,
40  audio_vnd_wave,
41  audio_webm,
42 
43  image_gif,
44  image_jpeg,
45  image_pjpeg,
46  image_png,
47  image_svg_xml,
48  image_tiff,
49  image_vnd_microsoft_icon,
50 
51  message_http,
52  message_imdn_xml,
53  message_partial,
54  message_rfc822,
55 
56  model_example,
57  model_iges,
58  model_mesh,
59  model_vrml,
60  model_x3d_binary,
61  model_x3d_vrml,
62  model_x3d_xml,
63 
64  multipart_mixed,
65  multipart_alternative,
66  multipart_related,
67  multipart_form_data,
68  multipart_signed,
69  multipart_encrypted,
70 
71  text_cmd,
72  text_css,
73  text_csv,
74  text_html,
75  text_javascript,
76  text_plain,
77  text_vcard,
78  text_xml,
79 
80  video_mpeg,
81  video_mp4,
82  video_ogg,
83  video_quicktime,
84  video_webm,
85  video_x_matroska,
86  video_x_ms_wmv,
87  video_x_flv,
88  MAX
89  };
90 
91  t FromString(const std::string& type);
92  std::string ToString(t type);
93  }
94 }
95