Kagera uHTTP Daemon
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /**
  2. * @PROJECT Kagera uHTTP Daemon
  3. * @COPYRIGHT See COPYING in the top level directory
  4. * @FILE mime_typ.h
  5. * @PURPOSE MIME types list
  6. * @DEVELOPERS Rafal Kupiec <belliash@asiotec.eu.org>
  7. */
  8. #ifndef __MIME_TYP_H
  9. #define __MIME_TYP_H
  10. static struct mime_entry typ_tab[] = {
  11. { "a", 0, "application/octet-stream", 0 },
  12. { "aab", 0, "application/x-authorware-bin", 0 },
  13. { "aam", 0, "application/x-authorware-map", 0 },
  14. { "aas", 0, "application/x-authorware-seg", 0 },
  15. { "ai", 0, "application/postscript", 0 },
  16. { "aif", 0, "audio/x-aiff", 0 },
  17. { "aifc", 0, "audio/x-aiff", 0 },
  18. { "aiff", 0, "audio/x-aiff", 0 },
  19. { "asc", 0, "text/plain", 0 },
  20. { "asf", 0, "video/x-ms-asf", 0 },
  21. { "asx", 0, "video/x-ms-asf", 0 },
  22. { "au", 0, "audio/basic", 0 },
  23. { "avi", 0, "video/x-msvideo", 0 },
  24. { "bcpio", 0, "application/x-bcpio", 0 },
  25. { "bin", 0, "application/octet-stream", 0 },
  26. { "bmp", 0, "image/bmp", 0 },
  27. { "cdf", 0, "application/x-netcdf", 0 },
  28. { "class", 0, "application/x-java-vm", 0 },
  29. { "cpio", 0, "application/x-cpio", 0 },
  30. { "cpt", 0, "application/mac-compactpro", 0 },
  31. { "crl", 0, "application/x-pkcs7-crl", 0 },
  32. { "crt", 0, "application/x-x509-ca-cert", 0 },
  33. { "csh", 0, "application/x-csh", 0 },
  34. { "css", 0, "text/css", 0 },
  35. { "dcr", 0, "application/x-director", 0 },
  36. { "dir", 0, "application/x-director", 0 },
  37. { "djv", 0, "image/vnd.djvu", 0 },
  38. { "djvu", 0, "image/vnd.djvu", 0 },
  39. { "dll", 0, "application/octet-stream", 0 },
  40. { "dms", 0, "application/octet-stream", 0 },
  41. { "doc", 0, "application/msword", 0 },
  42. { "dtd", 0, "text/xml", 0 },
  43. { "dump", 0, "application/octet-stream", 0 },
  44. { "dvi", 0, "application/x-dvi", 0 },
  45. { "dxr", 0, "application/x-director", 0 },
  46. { "eps", 0, "application/postscript", 0 },
  47. { "etx", 0, "text/x-setext", 0 },
  48. { "exe", 0, "application/octet-stream", 0 },
  49. { "ez", 0, "application/andrew-inset", 0 },
  50. { "fgd", 0, "application/x-director", 0 },
  51. { "fh", 0, "image/x-freehand", 0 },
  52. { "fh4", 0, "image/x-freehand", 0 },
  53. { "fh5", 0, "image/x-freehand", 0 },
  54. { "fh7", 0, "image/x-freehand", 0 },
  55. { "fhc", 0, "image/x-freehand", 0 },
  56. { "gif", 0, "image/gif", 0 },
  57. { "gtar", 0, "application/x-gtar", 0 },
  58. { "hdf", 0, "application/x-hdf", 0 },
  59. { "hqx", 0, "application/mac-binhex40", 0 },
  60. { "htm", 0, "text/html; charset=%s", 0 },
  61. { "html", 0, "text/html; charset=%s", 0 },
  62. { "ice", 0, "x-conference/x-cooltalk", 0 },
  63. { "ief", 0, "image/ief", 0 },
  64. { "iges", 0, "model/iges", 0 },
  65. { "igs", 0, "model/iges", 0 },
  66. { "iv", 0, "application/x-inventor", 0 },
  67. { "jar", 0, "application/x-java-archive", 0 },
  68. { "jfif", 0, "image/jpeg", 0 },
  69. { "jpe", 0, "image/jpeg", 0 },
  70. { "jpeg", 0, "image/jpeg", 0 },
  71. { "jpg", 0, "image/jpeg", 0 },
  72. { "js", 0, "application/x-javascript", 0 },
  73. { "kar", 0, "audio/midi", 0 },
  74. { "latex", 0, "application/x-latex", 0 },
  75. { "lha", 0, "application/octet-stream", 0 },
  76. { "lzh", 0, "application/octet-stream", 0 },
  77. { "m3u", 0, "audio/x-mpegurl", 0 },
  78. { "man", 0, "application/x-troff-man", 0 },
  79. { "mathml", 0, "application/mathml+xml", 0 },
  80. { "me", 0, "application/x-troff-me", 0 },
  81. { "mesh", 0, "model/mesh", 0 },
  82. { "mid", 0, "audio/midi", 0 },
  83. { "midi", 0, "audio/midi", 0 },
  84. { "mif", 0, "application/vnd.mif", 0 },
  85. { "mime", 0, "message/rfc822", 0 },
  86. { "mml", 0, "application/mathml+xml", 0 },
  87. { "mov", 0, "video/quicktime", 0 },
  88. { "movie", 0, "video/x-sgi-movie", 0 },
  89. { "mp2", 0, "audio/mpeg", 0 },
  90. { "mp3", 0, "audio/mpeg", 0 },
  91. { "mp4", 0, "video/mp4", 0 },
  92. { "mpe", 0, "video/mpeg", 0 },
  93. { "mpeg", 0, "video/mpeg", 0 },
  94. { "mpg", 0, "video/mpeg", 0 },
  95. { "mpga", 0, "audio/mpeg", 0 },
  96. { "ms", 0, "application/x-troff-ms", 0 },
  97. { "msh", 0, "model/mesh", 0 },
  98. { "mv", 0, "video/x-sgi-movie", 0 },
  99. { "mxu", 0, "video/vnd.mpegurl", 0 },
  100. { "nc", 0, "application/x-netcdf", 0 },
  101. { "o", 0, "application/octet-stream", 0 },
  102. { "oda", 0, "application/oda", 0 },
  103. { "ogg", 0, "application/x-ogg", 0 },
  104. { "pac", 0, "application/x-ns-proxy-autoconfig", 0 },
  105. { "pbm", 0, "image/x-portable-bitmap", 0 },
  106. { "pdb", 0, "chemical/x-pdb", 0 },
  107. { "pdf", 0, "application/pdf", 0 },
  108. { "pgm", 0, "image/x-portable-graymap", 0 },
  109. { "pgn", 0, "application/x-chess-pgn", 0 },
  110. { "png", 0, "image/png", 0 },
  111. { "pnm", 0, "image/x-portable-anymap", 0 },
  112. { "ppm", 0, "image/x-portable-pixmap", 0 },
  113. { "ppt", 0, "application/vnd.ms-powerpoint", 0 },
  114. { "ps", 0, "application/postscript", 0 },
  115. { "qt", 0, "video/quicktime", 0 },
  116. { "ra", 0, "audio/x-realaudio", 0 },
  117. { "ram", 0, "audio/x-pn-realaudio", 0 },
  118. { "ras", 0, "image/x-cmu-raster", 0 },
  119. { "rdf", 0, "application/rdf+xml", 0 },
  120. { "rgb", 0, "image/x-rgb", 0 },
  121. { "rm", 0, "audio/x-pn-realaudio", 0 },
  122. { "roff", 0, "application/x-troff", 0 },
  123. { "rpm", 0, "audio/x-pn-realaudio-plugin", 0 },
  124. { "rss", 0, "application/rss+xml", 0 },
  125. { "rtf", 0, "text/rtf", 0 },
  126. { "rtx", 0, "text/richtext", 0 },
  127. { "sgm", 0, "text/sgml", 0 },
  128. { "sgml", 0, "text/sgml", 0 },
  129. { "sh", 0, "application/x-sh", 0 },
  130. { "shar", 0, "application/x-shar", 0 },
  131. { "silo", 0, "model/mesh", 0 },
  132. { "sit", 0, "application/x-stuffit", 0 },
  133. { "skd", 0, "application/x-koan", 0 },
  134. { "skm", 0, "application/x-koan", 0 },
  135. { "skp", 0, "application/x-koan", 0 },
  136. { "skt", 0, "application/x-koan", 0 },
  137. { "smi", 0, "application/smil", 0 },
  138. { "smil", 0, "application/smil", 0 },
  139. { "snd", 0, "audio/basic", 0 },
  140. { "so", 0, "application/octet-stream", 0 },
  141. { "spl", 0, "application/x-futuresplash", 0 },
  142. { "src", 0, "application/x-wais-source", 0 },
  143. { "stc", 0, "application/vnd.sun.xml.calc.template", 0 },
  144. { "std", 0, "application/vnd.sun.xml.draw.template", 0 },
  145. { "sti", 0, "application/vnd.sun.xml.impress.template", 0 },
  146. { "stw", 0, "application/vnd.sun.xml.writer.template", 0 },
  147. { "sv4cpio", 0, "application/x-sv4cpio", 0 },
  148. { "sv4crc", 0, "application/x-sv4crc", 0 },
  149. { "svg", 0, "image/svg+xml", 0 },
  150. { "svgz", 0, "image/svg+xml", 0 },
  151. { "swf", 0, "application/x-shockwave-flash", 0 },
  152. { "sxc", 0, "application/vnd.sun.xml.calc", 0 },
  153. { "sxd", 0, "application/vnd.sun.xml.draw", 0 },
  154. { "sxg", 0, "application/vnd.sun.xml.writer.global", 0 },
  155. { "sxi", 0, "application/vnd.sun.xml.impress", 0 },
  156. { "sxm", 0, "application/vnd.sun.xml.math", 0 },
  157. { "sxw", 0, "application/vnd.sun.xml.writer", 0 },
  158. { "t", 0, "application/x-troff", 0 },
  159. { "tar", 0, "application/x-tar", 0 },
  160. { "tcl", 0, "application/x-tcl", 0 },
  161. { "tex", 0, "application/x-tex", 0 },
  162. { "texi", 0, "application/x-texinfo", 0 },
  163. { "texinfo", 0, "application/x-texinfo", 0 },
  164. { "tif", 0, "image/tiff", 0 },
  165. { "tiff", 0, "image/tiff", 0 },
  166. { "tr", 0, "application/x-troff", 0 },
  167. { "tsp", 0, "application/dsptype", 0 },
  168. { "tsv", 0, "text/tab-separated-values", 0 },
  169. { "txt", 0, "text/plain; charset=%s", 0 },
  170. { "ustar", 0, "application/x-ustar", 0 },
  171. { "vcd", 0, "application/x-cdlink", 0 },
  172. { "vrml", 0, "model/vrml", 0 },
  173. { "vx", 0, "video/x-rad-screenplay", 0 },
  174. { "wav", 0, "audio/x-wav", 0 },
  175. { "wax", 0, "audio/x-ms-wax", 0 },
  176. { "wbmp", 0, "image/vnd.wap.wbmp", 0 },
  177. { "wbxml", 0, "application/vnd.wap.wbxml", 0 },
  178. { "wm", 0, "video/x-ms-wm", 0 },
  179. { "wma", 0, "audio/x-ms-wma", 0 },
  180. { "wmd", 0, "application/x-ms-wmd", 0 },
  181. { "wml", 0, "text/vnd.wap.wml", 0 },
  182. { "wmlc", 0, "application/vnd.wap.wmlc", 0 },
  183. { "wmls", 0, "text/vnd.wap.wmlscript", 0 },
  184. { "wmlsc", 0, "application/vnd.wap.wmlscriptc", 0 },
  185. { "wmv", 0, "video/x-ms-wmv", 0 },
  186. { "wmx", 0, "video/x-ms-wmx", 0 },
  187. { "wmz", 0, "application/x-ms-wmz", 0 },
  188. { "wrl", 0, "model/vrml", 0 },
  189. { "wsrc", 0, "application/x-wais-source", 0 },
  190. { "wvx", 0, "video/x-ms-wvx", 0 },
  191. { "xbm", 0, "image/x-xbitmap", 0 },
  192. { "xht", 0, "application/xhtml+xml", 0 },
  193. { "xhtml", 0, "application/xhtml+xml", 0 },
  194. { "xls", 0, "application/vnd.ms-excel", 0 },
  195. { "xml", 0, "text/xml", 0 },
  196. { "xpm", 0, "image/x-xpixmap", 0 },
  197. { "xsl", 0, "text/xml", 0 },
  198. { "xwd", 0, "image/x-xwindowdump", 0 },
  199. { "xyz", 0, "chemical/x-xyz", 0 },
  200. { "zip", 0, "application/zip", 0 },
  201. };
  202. static const int n_typ_tab = sizeof(typ_tab) / sizeof(*typ_tab);
  203. #endif