Go to the documentation of this file.
   32 #define TRACE_LEVEL HTTP_TRACE_LEVEL 
   40 static const MimeType mimeTypeList[] =
 
   48    {
".htc",   
"text/x-component"},
 
   49    {
".htm",   
"text/html"},
 
   50    {
".html",  
"text/html"},
 
   51    {
".shtm",  
"text/html"},
 
   52    {
".shtml", 
"text/html"},
 
   53    {
".stm",   
"text/html"},
 
   54    {
".txt",   
"text/plain"},
 
   55    {
".vcf",   
"text/vcard"},
 
   56    {
".vcard", 
"text/vcard"},
 
   60    {
".gif",   
"image/gif"},
 
   61    {
".ico",   
"image/x-icon"},
 
   62    {
".jpg",   
"image/jpeg"},
 
   63    {
".jpeg",  
"image/jpeg"},
 
   64    {
".png",   
"image/png"},
 
   65    {
".svg",   
"image/svg+xml"},
 
   66    {
".tif",   
"image/tiff"},
 
   69    {
".aac",   
"audio/x-aac"},
 
   70    {
".aif",   
"audio/x-aiff"},
 
   71    {
".mp3",   
"audio/mpeg"},
 
   72    {
".wav",   
"audio/x-wav"},
 
   73    {
".wma",   
"audio/x-ms-wma"},
 
   76    {
".avi",   
"video/x-msvideo"},
 
   77    {
".flv",   
"video/x-flv"},
 
   78    {
".mov",   
"video/quicktime"},
 
   79    {
".mp4",   
"video/mp4"},
 
   80    {
".mpg",   
"video/mpeg"},
 
   81    {
".mpeg",  
"video/mpeg"},
 
   82    {
".wmv",   
"video/x-ms-wmv"},
 
   85    {
".doc",   
"application/msword"},
 
   86    {
".gz",    
"application/x-gzip"},
 
   87    {
".gzip",  
"application/x-gzip"},
 
   88    {
".js",    
"application/javascript"},
 
   89    {
".json",  
"application/json"},
 
   90    {
".ogg",   
"application/ogg"},
 
   91    {
".pdf",   
"application/pdf"},
 
   92    {
".ppt",   
"application/vnd.ms-powerpoint"},
 
   93    {
".rar",   
"application/x-rar-compressed"},
 
   94    {
".rtf",   
"application/rtf"},
 
   95    {
".tar",   
"application/x-tar"},
 
   96    {
".tgz",   
"application/x-gzip"},
 
   97    {
".xht",   
"application/xhtml+xml"},
 
   98    {
".xhtml", 
"application/xhtml+xml"},
 
   99    {
".xls",   
"application/vnd.ms-excel"},
 
  100    {
".zip",   
"application/zip"}
 
  120    static const char_t defaultMimeType[] = 
"application/octet-stream";
 
  129       for(i = 0; i < 
arraysize(mimeTypeList); i++)
 
  140                return mimeTypeList[i].
type;
 
  147    return defaultMimeType;
 
  
#define MIME_CUSTOM_TYPES
const char_t * mimeGetType(const char_t *filename)
Get the MIME type from a given extension.
#define osStrcasecmp(s1, s2)
MIME (Multipurpose Internet Mail Extensions)