This class holds http mime type information. More...
#include <mime_types.hpp>
Static Public Member Functions | |
static OOS_HTTP_API const char * | from_file_extension (const std::string &ext) |
static OOS_HTTP_API const char * | from_file_extension (const char *ext) |
static OOS_HTTP_API const char * | from_type (types type) |
Static Public Attributes | |
static OOS_HTTP_API const char * | IMAGE_GIF |
static OOS_HTTP_API const char * | IMAGE_JPEG |
static OOS_HTTP_API const char * | IMAGE_PNG |
static OOS_HTTP_API const char * | TEXT_HTML |
static OOS_HTTP_API const char * | TEXT_PLAIN |
static OOS_HTTP_API const char * | TEXT_XML |
static OOS_HTTP_API const char * | TEXT_CSS |
static OOS_HTTP_API const char * | APPLICATION_JSON |
static OOS_HTTP_API const char * | APPLICATION_GZIP |
static OOS_HTTP_API const char * | APPLICATION_ZIP |
static OOS_HTTP_API const char * | APPLICATION_JAVASCRIPT |
static OOS_HTTP_API const char * | APPLICATION_X_WWW_FORM_URLENCODED |
This class holds http mime type information.
This class consists of a mime type enumeration their string counterparts for use in http requests as content type and conversion methods
Mime type enumeration
|
static |
Determines the mime type string from a files extension
ext | File extension to be determined |
|
static |
Determines the mime type string from a files extension
ext | File extension to be determined |
|
static |
Converts a mime type enum value into its string representation
type | Mime type to convert |
|
static |
application/gzip type string
|
static |
application/javascript type string
|
static |
application/json type string
|
static |
application/x-www-form-urlencoded type string
|
static |
application/zip type string
|
static |
image/gif type string
|
static |
image/jpeg type string
|
static |
image/png type string
|
static |
text/css type string
|
static |
text/html type string
|
static |
text/plain type string
|
static |
text/xml type string