39 lines
866 B
TypeScript
39 lines
866 B
TypeScript
import { Extensible } from "./interfaces.ts";
|
|
|
|
export type ContentType = string;
|
|
|
|
const contentTypes = {
|
|
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 };
|