Add several constants

This commit is contained in:
2025-02-08 18:27:31 -06:00
parent d3c2971faa
commit 19d4309272
3 changed files with 78 additions and 0 deletions

36
deno/content-types.ts Normal file
View 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 };