UNPKG

@tuentyfaiv/http

Version:

Library for http requests based on fetch

29 lines (28 loc) 1.16 kB
declare const ContentType: { readonly TextPlain: "text/plain"; readonly TextHtml: "text/html"; readonly TextCss: "text/css"; readonly TextJavascript: "text/javascript"; readonly TextCsv: "text/csv"; readonly ApplicationJson: "application/json"; readonly ApplicationFormUrlencoded: "application/x-www-form-urlencoded"; readonly ApplicationFormData: "multipart/form-data"; readonly ApplicationXml: "application/xml"; readonly TextXml: "text/xml"; readonly ApplicationOctetStream: "application/octet-stream"; readonly ApplicationPdf: "application/pdf"; readonly ApplicationZip: "application/zip"; readonly ImageJpeg: "image/jpeg"; readonly ImagePng: "image/png"; readonly ImageGif: "image/gif"; readonly ImageSvgXml: "image/svg+xml"; readonly ImageWebp: "image/webp"; readonly AudioMpeg: "audio/mpeg"; readonly AudioOgg: "audio/ogg"; readonly AudioWav: "audio/wav"; readonly VideoMp4: "video/mp4"; readonly VideoWebm: "video/webm"; readonly VideoOgg: "video/ogg"; }; export type ContentTypes = typeof ContentType[keyof typeof ContentType]; export { ContentType };