node-fetch-light
Version:
light-weight fetch wrapper library for node js
102 lines (101 loc) • 2.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpRequestMethodValues = exports.HttpAuthorizeSchemaValues = exports.HttpHeaderValues = exports.FormattableContentTypeValues = exports.ContentTypeValues = void 0;
exports.ContentTypeValues = [
"application/json",
"application/xml",
"application/pdf",
"application/zip",
"application/x-www-form-urlencoded",
"application/octet-stream",
"application/javascript",
"application/ld+json",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"audio/mpeg",
"audio/ogg",
"audio/wav",
"image/jpeg",
"image/png",
"image/gif",
"image/webp",
"image/svg+xml",
"multipart/form-data",
"text/plain",
"text/html",
"text/css",
"text/javascript",
"text/csv",
"text/xml",
"video/mp4",
"video/mpeg",
"video/ogg",
"video/webm"
];
exports.FormattableContentTypeValues = [
"application/json",
"application/x-www-form-urlencoded",
];
exports.HttpHeaderValues = [
"A-IM",
"Accept",
"Accept-Charset",
"Accept-Datetime",
"Accept-Encoding",
"Accept-Language",
"Access-Control-Request-Method",
"Access-Control-Request-Headers",
"Authorization",
"Cache-Control",
"Connection",
"Content-Encoding",
"Content-Length",
"Content-MD5",
"Content-Type",
"Cookie",
"Date",
"Expect",
"Forwarded",
"From",
"Host",
"HTTP2-Settings",
"If-Match",
"If-Modified-Since",
"If-None-Match",
"If-Range",
"If-Unmodified-Since",
"Max-Forwards",
"Origin",
"Pragma",
"Prefer",
"Proxy-Authorization",
"Range",
"Referer",
"TE",
"Trailer",
"Transfer-Encoding",
"User-Agent",
"Upgrade",
"Via",
"Warning"
];
exports.HttpAuthorizeSchemaValues = [
"Basic",
"Bearer",
"Digest",
"HOBA",
"Mutual",
"AWS4-HMAC-SHA256",
"NTLM",
"Negotiate",
"OAuth",
"SCRAM-SHA-1",
"SCRAM-SHA-256",
"apikey",
"Token"
];
exports.HttpRequestMethodValues = ["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"];