Add several constants
This commit is contained in:
36
deno/content-types.ts
Normal file
36
deno/content-types.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Extensible } from "./interfaces";
|
||||
|
||||
const contentTypes: Extensible = {
|
||||
text: {
|
||||
plain: "text/plain",
|
||||
html: "text/html",
|
||||
css: "text/css",
|
||||
javascript: "text/javascript",
|
||||
xml: "text/xml",
|
||||
},
|
||||
image: {
|
||||
jpeg: "image/jpeg",
|
||||
png: "image/png",
|
||||
gif: "image/gif",
|
||||
svgPlusXml: "image/svg+xml",
|
||||
webp: "image/webp",
|
||||
},
|
||||
audio: {
|
||||
"mpeg": "audio/mpeg",
|
||||
"wav": "audio/wav",
|
||||
},
|
||||
video: {
|
||||
mp4: "video/mp4",
|
||||
webm: "video/webm",
|
||||
xMsvideo: "video/x-msvideo",
|
||||
},
|
||||
application: {
|
||||
json: "application/json",
|
||||
pdf: "application/pdf",
|
||||
zip: "application/zip",
|
||||
xWwwFormUrlencoded: "x-www-form-urlencoded",
|
||||
octetStream: "octet-stream",
|
||||
},
|
||||
};
|
||||
|
||||
export { contentTypes };
|
||||
Reference in New Issue
Block a user