@d1g1tal/transportr 3.1.5 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -22
- package/dist/iife/content-type.js +4 -180
- package/dist/iife/content-type.js.map +7 -0
- package/dist/iife/request-header.js +4 -270
- package/dist/iife/request-header.js.map +7 -0
- package/dist/iife/request-method.js +4 -295
- package/dist/iife/request-method.js.map +7 -0
- package/dist/iife/response-header.js +4 -368
- package/dist/iife/response-header.js.map +7 -0
- package/dist/iife/transportr.js +1262 -3048
- package/dist/iife/transportr.js.map +7 -0
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,50 +1,67 @@
|
|
|
1
|
-
## [3.1
|
|
1
|
+
## [3.2.1](https://github.com/D1g1talEntr0py/transportr/compare/v3.2.0...v3.2.1) (2026-04-09)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
* **
|
|
5
|
+
* **build:** assign modules to 'globalThis' when generating IIFE output (fb1a54344ccc4a94f0b719dc6c0970ff804668f3)
|
|
6
6
|
|
|
7
|
-
## [3.
|
|
7
|
+
## [3.2.0](https://github.com/D1g1talEntr0py/transportr/compare/v3.1.5...v3.2.0) (2026-04-09)
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Features
|
|
10
10
|
|
|
11
|
-
*
|
|
11
|
+
* add IIFE build support and exports (0fc9585da39db7abdd5ba4301ab4d4e8bc201a71)
|
|
12
|
+
Configures tsconfig and workspace settings to support IIFE builds, and adds the corresponding export maps to package.json.
|
|
12
13
|
|
|
13
|
-
## [3.1.3](https://github.com/D1g1talEntr0py/transportr/compare/v3.1.2...v3.1.3) (2026-04-08)
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Miscellaneous Chores
|
|
16
16
|
|
|
17
|
-
* **
|
|
17
|
+
* **release:** 3.1.0 [skip ci] (84e47e41486e07f27af0aecb463f30df63475920)
|
|
18
|
+
## [3.1.0](https://github.com/D1g1talEntr0py/transportr/compare/v3.0.3...v3.1.0) (2026-04-09)
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
### Features
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
* add IIFE build support and exports (0fc9585da39db7abdd5ba4301ab4d4e8bc201a71)
|
|
23
|
+
Configures tsconfig and workspace settings to support IIFE builds, and adds the corresponding export maps to package.json.
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
* **iife:** clean dist/iife before regenerating to remove stale files (9f59419896f841c0491fc595aecd333cd65656a8)
|
|
25
|
+
### Miscellaneous Chores
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
* align version with last published package after history reset (9dc31a6cbd91130a8f7d0132fc2ef4c41fa52dec)
|
|
28
|
+
* more fun with the lockfile (b8f25c3c87a5c091fd45975d4e2e659564652053)
|
|
27
29
|
|
|
28
|
-
###
|
|
30
|
+
### Build System
|
|
31
|
+
|
|
32
|
+
* **deps:** update dependencies (240f5449ee07bac9f73c11c10810616617d85310)
|
|
33
|
+
Updates various dev dependencies including vitest, typescript-eslint, and tsbuild, alongside the corresponding lockfile updates.
|
|
29
34
|
|
|
30
|
-
* include iife bundles in npm package (d64205fd71c6ec184fe842bd24fe324d06fc5fb3)
|
|
31
|
-
* include iife bundles in npm package (a3247587b470e2628d43cbd1ad660e9039bae7a7)
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
### Build System
|
|
37
|
+
|
|
38
|
+
* **deps:** update dependencies (240f5449ee07bac9f73c11c10810616617d85310)
|
|
39
|
+
Updates various dev dependencies including vitest, typescript-eslint, and tsbuild, alongside the corresponding lockfile updates.
|
|
40
|
+
|
|
41
|
+
* fail fast if computed version already exists on npm (b5d6c1f122f87faa99f67db93b720e8f04816756)
|
|
42
|
+
|
|
43
|
+
### Continuous Integration
|
|
44
|
+
|
|
45
|
+
* add workflow_dispatch trigger to publish workflow (c9ce2fffbbcf5fd8523915a067a6b59a36d8c4bf)
|
|
46
|
+
|
|
47
|
+
## [3.1.0](https://github.com/D1g1talEntr0py/transportr/compare/v3.0.3...v3.1.0) (2026-04-09)
|
|
34
48
|
|
|
35
49
|
### Features
|
|
36
50
|
|
|
37
|
-
*
|
|
38
|
-
|
|
51
|
+
* add IIFE build support and exports (0fc9585da39db7abdd5ba4301ab4d4e8bc201a71)
|
|
52
|
+
Configures tsconfig and workspace settings to support IIFE builds, and adds the corresponding export maps to package.json.
|
|
39
53
|
|
|
40
54
|
|
|
41
55
|
### Miscellaneous Chores
|
|
42
56
|
|
|
43
|
-
*
|
|
44
|
-
Bumps `@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`, and related dependencies to the latest patch versions. Synchronizes the lockfile and workspace configurations accordingly.
|
|
45
|
-
|
|
57
|
+
* align version with last published package after history reset (9dc31a6cbd91130a8f7d0132fc2ef4c41fa52dec)
|
|
46
58
|
* more fun with the lockfile (b8f25c3c87a5c091fd45975d4e2e659564652053)
|
|
47
59
|
|
|
60
|
+
### Build System
|
|
61
|
+
|
|
62
|
+
* **deps:** update dependencies (240f5449ee07bac9f73c11c10810616617d85310)
|
|
63
|
+
Updates various dev dependencies including vitest, typescript-eslint, and tsbuild, alongside the corresponding lockfile updates.
|
|
64
|
+
|
|
48
65
|
## [3.0.3](https://github.com/D1g1talEntr0py/transportr/compare/v3.0.2...v3.0.3) (2026-04-07)
|
|
49
66
|
|
|
50
67
|
### Bug Fixes
|
|
@@ -1,181 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/content-type.ts
|
|
21
|
-
var content_type_exports = {};
|
|
22
|
-
__export(content_type_exports, {
|
|
23
|
-
ContentType: () => ContentType
|
|
24
|
-
});
|
|
25
|
-
var ContentType = {
|
|
26
|
-
/** Advanced Audio Coding (AAC) */
|
|
27
|
-
AAC: "audio/aac",
|
|
28
|
-
/** AbiWord */
|
|
29
|
-
ABW: "application/x-abiword",
|
|
30
|
-
/** Archive document (multiple files embedded) */
|
|
31
|
-
ARC: "application/x-freearc",
|
|
32
|
-
/** AVIF image */
|
|
33
|
-
AVIF: "image/avif",
|
|
34
|
-
/** Audio Video Interleave (AVI) */
|
|
35
|
-
AVI: "video/x-msvideo",
|
|
36
|
-
/** Amazon Kindle eBook format */
|
|
37
|
-
AZW: "application/vnd.amazon.ebook",
|
|
38
|
-
/** Binary Data */
|
|
39
|
-
BIN: "application/octet-stream",
|
|
40
|
-
/** Windows OS/2 Bitmap Graphics */
|
|
41
|
-
BMP: "image/bmp",
|
|
42
|
-
/** Bzip Archive */
|
|
43
|
-
BZIP: "application/x-bzip",
|
|
44
|
-
/** Bzip2 Archive */
|
|
45
|
-
BZIP2: "application/x-bzip2",
|
|
46
|
-
/** CD audio */
|
|
47
|
-
CDA: "application/x-cdf",
|
|
48
|
-
/** C Shell Script */
|
|
49
|
-
CSH: "application/x-csh",
|
|
50
|
-
/** Cascading Style Sheets (CSS) */
|
|
51
|
-
CSS: "text/css",
|
|
52
|
-
/** Comma-Separated Values */
|
|
53
|
-
CSV: "text/csv",
|
|
54
|
-
/** Microsoft Office Word Document */
|
|
55
|
-
DOC: "application/msword",
|
|
56
|
-
/** Microsoft Office Word Document (OpenXML) */
|
|
57
|
-
DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
58
|
-
/** Microsoft Embedded OpenType */
|
|
59
|
-
EOT: "application/vnd.ms-fontobject",
|
|
60
|
-
/** Electronic Publication (EPUB) */
|
|
61
|
-
EPUB: "application/epub+zip",
|
|
62
|
-
/** GZip Compressed Archive */
|
|
63
|
-
GZIP: "application/gzip",
|
|
64
|
-
/** Graphics Interchange Format */
|
|
65
|
-
GIF: "image/gif",
|
|
66
|
-
/** HyperText Markup Language (HTML) */
|
|
67
|
-
HTML: "text/html",
|
|
68
|
-
/** Icon Format */
|
|
69
|
-
ICO: "image/vnd.microsoft.icon",
|
|
70
|
-
/** iCalendar Format */
|
|
71
|
-
ICS: "text/calendar",
|
|
72
|
-
/** Java Archive (JAR) */
|
|
73
|
-
JAR: "application/java-archive",
|
|
74
|
-
/** JPEG Image */
|
|
75
|
-
JPEG: "image/jpeg",
|
|
76
|
-
/** JavaScript */
|
|
77
|
-
JAVA_SCRIPT: "text/javascript",
|
|
78
|
-
/** JavaScript Object Notation Format (JSON) */
|
|
79
|
-
JSON: "application/json",
|
|
80
|
-
/** JavaScript Object Notation LD Format */
|
|
81
|
-
JSON_LD: "application/ld+json",
|
|
82
|
-
/** JavaScript Object Notation (JSON) Merge Patch */
|
|
83
|
-
JSON_MERGE_PATCH: "application/merge-patch+json",
|
|
84
|
-
/** Musical Instrument Digital Interface (MIDI) */
|
|
85
|
-
MID: "audio/midi",
|
|
86
|
-
/** Musical Instrument Digital Interface (MIDI) */
|
|
87
|
-
X_MID: "audio/x-midi",
|
|
88
|
-
/** MP3 Audio */
|
|
89
|
-
MP3: "audio/mpeg",
|
|
90
|
-
/** MPEG-4 Audio */
|
|
91
|
-
MP4A: "audio/mp4",
|
|
92
|
-
/** MPEG-4 Video */
|
|
93
|
-
MP4: "video/mp4",
|
|
94
|
-
/** MPEG Video */
|
|
95
|
-
MPEG: "video/mpeg",
|
|
96
|
-
/** Apple Installer Package */
|
|
97
|
-
MPKG: "application/vnd.apple.installer+xml",
|
|
98
|
-
/** OpenDocument Presentation Document */
|
|
99
|
-
ODP: "application/vnd.oasis.opendocument.presentation",
|
|
100
|
-
/** OpenDocument Spreadsheet Document */
|
|
101
|
-
ODS: "application/vnd.oasis.opendocument.spreadsheet",
|
|
102
|
-
/** OpenDocument Text Document */
|
|
103
|
-
ODT: "application/vnd.oasis.opendocument.text",
|
|
104
|
-
/** Ogg Audio */
|
|
105
|
-
OGA: "audio/ogg",
|
|
106
|
-
/** Ogg Video */
|
|
107
|
-
OGV: "video/ogg",
|
|
108
|
-
/** Ogg */
|
|
109
|
-
OGX: "application/ogg",
|
|
110
|
-
/** Opus audio */
|
|
111
|
-
OPUS: "audio/opus",
|
|
112
|
-
/** OpenType Font File */
|
|
113
|
-
OTF: "font/otf",
|
|
114
|
-
/** Portable Network Graphics (PNG) */
|
|
115
|
-
PNG: "image/png",
|
|
116
|
-
/** Adobe Portable Document Format */
|
|
117
|
-
PDF: "application/pdf",
|
|
118
|
-
/** Hypertext Preprocessor (Personal Home Page) */
|
|
119
|
-
PHP: "application/x-httpd-php",
|
|
120
|
-
/** Microsoft PowerPoint */
|
|
121
|
-
PPT: "application/vnd.ms-powerpoint",
|
|
122
|
-
/** Microsoft Office Presentation (OpenXML) */
|
|
123
|
-
PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
124
|
-
/** RAR Archive */
|
|
125
|
-
RAR: "application/vnd.rar",
|
|
126
|
-
/** Rich Text Format */
|
|
127
|
-
RTF: "application/rtf",
|
|
128
|
-
/** Bourne Shell Script */
|
|
129
|
-
SH: "application/x-sh",
|
|
130
|
-
/** Scalable Vector Graphics (SVG) */
|
|
131
|
-
SVG: "image/svg+xml",
|
|
132
|
-
/** Tape Archive (TAR) */
|
|
133
|
-
TAR: "application/x-tar",
|
|
134
|
-
/** Tagged Image File Format (TIFF) */
|
|
135
|
-
TIFF: "image/tiff",
|
|
136
|
-
/** MPEG transport stream */
|
|
137
|
-
TRANSPORT_STREAM: "video/mp2t",
|
|
138
|
-
/** TrueType Font */
|
|
139
|
-
TTF: "font/ttf",
|
|
140
|
-
/** Text, (generally ASCII or ISO 8859-n) */
|
|
141
|
-
TEXT: "text/plain",
|
|
142
|
-
/** Microsoft Visio */
|
|
143
|
-
VSD: "application/vnd.visio",
|
|
144
|
-
/** Waveform Audio Format (WAV) */
|
|
145
|
-
WAV: "audio/wav",
|
|
146
|
-
/** Open Web Media Project - Audio */
|
|
147
|
-
WEBA: "audio/webm",
|
|
148
|
-
/** Open Web Media Project - Video */
|
|
149
|
-
WEBM: "video/webm",
|
|
150
|
-
/** WebP Image */
|
|
151
|
-
WEBP: "image/webp",
|
|
152
|
-
/** Web Open Font Format */
|
|
153
|
-
WOFF: "font/woff",
|
|
154
|
-
/** Web Open Font Format */
|
|
155
|
-
WOFF2: "font/woff2",
|
|
156
|
-
/** Form - Encoded */
|
|
157
|
-
FORM: "application/x-www-form-urlencoded",
|
|
158
|
-
/** Multipart FormData */
|
|
159
|
-
MULTIPART_FORM_DATA: "multipart/form-data",
|
|
160
|
-
/** XHTML - The Extensible HyperText Markup Language */
|
|
161
|
-
XHTML: "application/xhtml+xml",
|
|
162
|
-
/** Microsoft Excel Document */
|
|
163
|
-
XLS: "application/vnd.ms-excel",
|
|
164
|
-
/** Microsoft Office Spreadsheet Document (OpenXML) */
|
|
165
|
-
XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
166
|
-
/** Extensible Markup Language (XML) */
|
|
167
|
-
XML: "application/xml",
|
|
168
|
-
/** XML User Interface Language (XUL) */
|
|
169
|
-
XUL: "application/vnd.mozilla.xul+xml",
|
|
170
|
-
/** Zip Archive */
|
|
171
|
-
ZIP: "application/zip",
|
|
172
|
-
/** 3GPP audio/video container */
|
|
173
|
-
"3GP": "video/3gpp",
|
|
174
|
-
/** 3GPP2 audio/video container */
|
|
175
|
-
"3G2": "video/3gpp2",
|
|
176
|
-
/** 7-Zip Archive */
|
|
177
|
-
"7Z": "application/x-7z-compressed"
|
|
178
|
-
};
|
|
179
|
-
return __toCommonJS(content_type_exports);
|
|
1
|
+
(() => {
|
|
2
|
+
// iife:/home/runner/work/transportr/transportr/dist/content-type.js
|
|
3
|
+
var i = { AAC: "audio/aac", ABW: "application/x-abiword", ARC: "application/x-freearc", AVIF: "image/avif", AVI: "video/x-msvideo", AZW: "application/vnd.amazon.ebook", BIN: "application/octet-stream", BMP: "image/bmp", BZIP: "application/x-bzip", BZIP2: "application/x-bzip2", CDA: "application/x-cdf", CSH: "application/x-csh", CSS: "text/css", CSV: "text/csv", DOC: "application/msword", DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", EOT: "application/vnd.ms-fontobject", EPUB: "application/epub+zip", GZIP: "application/gzip", GIF: "image/gif", HTML: "text/html", ICO: "image/vnd.microsoft.icon", ICS: "text/calendar", JAR: "application/java-archive", JPEG: "image/jpeg", JAVA_SCRIPT: "text/javascript", JSON: "application/json", JSON_LD: "application/ld+json", JSON_MERGE_PATCH: "application/merge-patch+json", MID: "audio/midi", X_MID: "audio/x-midi", MP3: "audio/mpeg", MP4A: "audio/mp4", MP4: "video/mp4", MPEG: "video/mpeg", MPKG: "application/vnd.apple.installer+xml", ODP: "application/vnd.oasis.opendocument.presentation", ODS: "application/vnd.oasis.opendocument.spreadsheet", ODT: "application/vnd.oasis.opendocument.text", OGA: "audio/ogg", OGV: "video/ogg", OGX: "application/ogg", OPUS: "audio/opus", OTF: "font/otf", PNG: "image/png", PDF: "application/pdf", PHP: "application/x-httpd-php", PPT: "application/vnd.ms-powerpoint", PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation", RAR: "application/vnd.rar", RTF: "application/rtf", SH: "application/x-sh", SVG: "image/svg+xml", TAR: "application/x-tar", TIFF: "image/tiff", TRANSPORT_STREAM: "video/mp2t", TTF: "font/ttf", TEXT: "text/plain", VSD: "application/vnd.visio", WAV: "audio/wav", WEBA: "audio/webm", WEBM: "video/webm", WEBP: "image/webp", WOFF: "font/woff", WOFF2: "font/woff2", FORM: "application/x-www-form-urlencoded", MULTIPART_FORM_DATA: "multipart/form-data", XHTML: "application/xhtml+xml", XLS: "application/vnd.ms-excel", XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", XML: "application/xml", XUL: "application/vnd.mozilla.xul+xml", ZIP: "application/zip", "3GP": "video/3gpp", "3G2": "video/3gpp2", "7Z": "application/x-7z-compressed" };
|
|
4
|
+
Object.assign(globalThis, { i });
|
|
180
5
|
})();
|
|
181
|
-
globalThis.ContentType = __mod.ContentType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/content-type.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * A collection of some of the available HTTP media types.\n * @see {@link https://www.iana.org/assignments/media-types/media-types.xhtml | IANA Media Types}\n */\nconst ContentType = {\n\t/** Advanced Audio Coding (AAC) */\n\tAAC: 'audio/aac',\n\t/** AbiWord */\n\tABW: 'application/x-abiword',\n\t/** Archive document (multiple files embedded) */\n\tARC: 'application/x-freearc',\n\t/** AVIF image */\n\tAVIF: 'image/avif',\n\t/** Audio Video Interleave (AVI) */\n\tAVI: 'video/x-msvideo',\n\t/** Amazon Kindle eBook format */\n\tAZW: 'application/vnd.amazon.ebook',\n\t/** Binary Data */\n\tBIN: 'application/octet-stream',\n\t/** Windows OS/2 Bitmap Graphics */\n\tBMP: 'image/bmp',\n\t/** Bzip Archive */\n\tBZIP: 'application/x-bzip',\n\t/** Bzip2 Archive */\n\tBZIP2: 'application/x-bzip2',\n\t/** CD audio */\n\tCDA: 'application/x-cdf',\n\t/** C Shell Script */\n\tCSH: 'application/x-csh',\n\t/** Cascading Style Sheets (CSS) */\n\tCSS: 'text/css',\n\t/** Comma-Separated Values */\n\tCSV: 'text/csv',\n\t/** Microsoft Office Word Document */\n\tDOC: 'application/msword',\n\t/** Microsoft Office Word Document (OpenXML) */\n\tDOCX: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n\t/** Microsoft Embedded OpenType */\n\tEOT: 'application/vnd.ms-fontobject',\n\t/** Electronic Publication (EPUB) */\n\tEPUB: 'application/epub+zip',\n\t/** GZip Compressed Archive */\n\tGZIP: 'application/gzip',\n\t/** Graphics Interchange Format */\n\tGIF: 'image/gif',\n\t/** HyperText Markup Language (HTML) */\n\tHTML: 'text/html',\n\t/** Icon Format */\n\tICO: 'image/vnd.microsoft.icon',\n\t/** iCalendar Format */\n\tICS: 'text/calendar',\n\t/** Java Archive (JAR) */\n\tJAR: 'application/java-archive',\n\t/** JPEG Image */\n\tJPEG: 'image/jpeg',\n\t/** JavaScript */\n\tJAVA_SCRIPT: 'text/javascript',\n\t/** JavaScript Object Notation Format (JSON) */\n\tJSON: 'application/json',\n\t/** JavaScript Object Notation LD Format */\n\tJSON_LD: 'application/ld+json',\n\t/** JavaScript Object Notation (JSON) Merge Patch */\n\tJSON_MERGE_PATCH: 'application/merge-patch+json',\n\t/** Musical Instrument Digital Interface (MIDI) */\n\tMID: 'audio/midi',\n\t/** Musical Instrument Digital Interface (MIDI) */\n\tX_MID: 'audio/x-midi',\n\t/** MP3 Audio */\n\tMP3: 'audio/mpeg',\n\t/** MPEG-4 Audio */\n\tMP4A: 'audio/mp4',\n\t/** MPEG-4 Video */\n\tMP4: 'video/mp4',\n\t/** MPEG Video */\n\tMPEG: 'video/mpeg',\n\t/** Apple Installer Package */\n\tMPKG: 'application/vnd.apple.installer+xml',\n\t/** OpenDocument Presentation Document */\n\tODP: 'application/vnd.oasis.opendocument.presentation',\n\t/** OpenDocument Spreadsheet Document */\n\tODS: 'application/vnd.oasis.opendocument.spreadsheet',\n\t/** OpenDocument Text Document */\n\tODT: 'application/vnd.oasis.opendocument.text',\n\t/** Ogg Audio */\n\tOGA: 'audio/ogg',\n\t/** Ogg Video */\n\tOGV: 'video/ogg',\n\t/** Ogg */\n\tOGX: 'application/ogg',\n\t/** Opus audio */\n\tOPUS: 'audio/opus',\n\t/** OpenType Font File */\n\tOTF: 'font/otf',\n\t/** Portable Network Graphics (PNG) */\n\tPNG: 'image/png',\n\t/** Adobe Portable Document Format */\n\tPDF: 'application/pdf',\n\t/** Hypertext Preprocessor (Personal Home Page) */\n\tPHP: 'application/x-httpd-php',\n\t/** Microsoft PowerPoint */\n\tPPT: 'application/vnd.ms-powerpoint',\n\t/** Microsoft Office Presentation (OpenXML) */\n\tPPTX: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n\t/** RAR Archive */\n\tRAR: 'application/vnd.rar',\n\t/** Rich Text Format */\n\tRTF: 'application/rtf',\n\t/** Bourne Shell Script */\n\tSH: 'application/x-sh',\n\t/** Scalable Vector Graphics (SVG) */\n\tSVG: 'image/svg+xml',\n\t/** Tape Archive (TAR) */\n\tTAR: 'application/x-tar',\n\t/** Tagged Image File Format (TIFF) */\n\tTIFF: 'image/tiff',\n\t/** MPEG transport stream */\n\tTRANSPORT_STREAM: 'video/mp2t',\n\t/** TrueType Font */\n\tTTF: 'font/ttf',\n\t/** Text, (generally ASCII or ISO 8859-n) */\n\tTEXT: 'text/plain',\n\t/** Microsoft Visio */\n\tVSD: 'application/vnd.visio',\n\t/** Waveform Audio Format (WAV) */\n\tWAV: 'audio/wav',\n\t/** Open Web Media Project - Audio */\n\tWEBA: 'audio/webm',\n\t/** Open Web Media Project - Video */\n\tWEBM: 'video/webm',\n\t/** WebP Image */\n\tWEBP: 'image/webp',\n\t/** Web Open Font Format */\n\tWOFF: 'font/woff',\n\t/** Web Open Font Format */\n\tWOFF2: 'font/woff2',\n\t/** Form - Encoded */\n\tFORM: 'application/x-www-form-urlencoded',\n\t/** Multipart FormData */\n\tMULTIPART_FORM_DATA: 'multipart/form-data',\n\t/** XHTML - The Extensible HyperText Markup Language */\n\tXHTML: 'application/xhtml+xml',\n\t/** Microsoft Excel Document */\n\tXLS: 'application/vnd.ms-excel',\n\t/** Microsoft Office Spreadsheet Document (OpenXML) */\n\tXLSX: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n\t/** Extensible Markup Language (XML) */\n\tXML: 'application/xml',\n\t/** XML User Interface Language (XUL) */\n\tXUL: 'application/vnd.mozilla.xul+xml',\n\t/** Zip Archive */\n\tZIP: 'application/zip',\n\t/** 3GPP audio/video container */\n\t'3GP': 'video/3gpp',\n\t/** 3GPP2 audio/video container */\n\t'3G2': 'video/3gpp2',\n\t/** 7-Zip Archive */\n\t'7Z': 'application/x-7z-compressed'\n} as const;\n\nexport { ContentType };"],
|
|
5
|
+
"mappings": ";AAIA,IAAMA,IAAc,EAEnB,KAAK,aAEL,KAAK,yBAEL,KAAK,yBAEL,MAAM,cAEN,KAAK,mBAEL,KAAK,gCAEL,KAAK,4BAEL,KAAK,aAEL,MAAM,sBAEN,OAAO,uBAEP,KAAK,qBAEL,KAAK,qBAEL,KAAK,YAEL,KAAK,YAEL,KAAK,sBAEL,MAAM,2EAEN,KAAK,iCAEL,MAAM,wBAEN,MAAM,oBAEN,KAAK,aAEL,MAAM,aAEN,KAAK,4BAEL,KAAK,iBAEL,KAAK,4BAEL,MAAM,cAEN,aAAa,mBAEb,MAAM,oBAEN,SAAS,uBAET,kBAAkB,gCAElB,KAAK,cAEL,OAAO,gBAEP,KAAK,cAEL,MAAM,aAEN,KAAK,aAEL,MAAM,cAEN,MAAM,uCAEN,KAAK,mDAEL,KAAK,kDAEL,KAAK,2CAEL,KAAK,aAEL,KAAK,aAEL,KAAK,mBAEL,MAAM,cAEN,KAAK,YAEL,KAAK,aAEL,KAAK,mBAEL,KAAK,2BAEL,KAAK,iCAEL,MAAM,6EAEN,KAAK,uBAEL,KAAK,mBAEL,IAAI,oBAEJ,KAAK,iBAEL,KAAK,qBAEL,MAAM,cAEN,kBAAkB,cAElB,KAAK,YAEL,MAAM,cAEN,KAAK,yBAEL,KAAK,aAEL,MAAM,cAEN,MAAM,cAEN,MAAM,cAEN,MAAM,aAEN,OAAO,cAEP,MAAM,qCAEN,qBAAqB,uBAErB,OAAO,yBAEP,KAAK,4BAEL,MAAM,qEAEN,KAAK,mBAEL,KAAK,mCAEL,KAAK,mBAEL,OAAO,cAEP,OAAO,eAEP,MAAM,8BACP;",
|
|
6
|
+
"names": ["ContentType"]
|
|
7
|
+
}
|
|
@@ -1,271 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/request-header.ts
|
|
21
|
-
var request_header_exports = {};
|
|
22
|
-
__export(request_header_exports, {
|
|
23
|
-
RequestHeader: () => RequestHeader
|
|
24
|
-
});
|
|
25
|
-
var RequestHeader = {
|
|
26
|
-
/**
|
|
27
|
-
* Content-Types that are acceptable for the response. See Content negotiation. Permanent.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* <code>Accept: text/plain</code>
|
|
31
|
-
*/
|
|
32
|
-
ACCEPT: "accept",
|
|
33
|
-
/**
|
|
34
|
-
* Character sets that are acceptable. Permanent.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* <code>Accept-Charset: utf-8</code>
|
|
38
|
-
*/
|
|
39
|
-
ACCEPT_CHARSET: "accept-charset",
|
|
40
|
-
/**
|
|
41
|
-
* List of acceptable encodings. See HTTP compression. Permanent.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* <code>Accept-Encoding: gzip, deflate</code>
|
|
45
|
-
*/
|
|
46
|
-
ACCEPT_ENCODING: "accept-encoding",
|
|
47
|
-
/**
|
|
48
|
-
* List of acceptable human languages for response. See Content negotiation. Permanent.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* <code>Accept-Language: en-US</code>
|
|
52
|
-
*/
|
|
53
|
-
ACCEPT_LANGUAGE: "accept-language",
|
|
54
|
-
/**
|
|
55
|
-
* Authentication credentials for HTTP authentication. Permanent.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* <code>Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>
|
|
59
|
-
*/
|
|
60
|
-
AUTHORIZATION: "authorization",
|
|
61
|
-
/**
|
|
62
|
-
* Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
|
|
63
|
-
* Permanent.
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* <code>Cache-Control: no-cache</code>
|
|
67
|
-
*/
|
|
68
|
-
CACHE_CONTROL: "cache-control",
|
|
69
|
-
/**
|
|
70
|
-
* Control options for the current connection and list of hop-by-hop request fields. Permanent.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* <code>Connection: keep-alive</code>
|
|
74
|
-
* <code>Connection: Upgrade</code>
|
|
75
|
-
*/
|
|
76
|
-
CONNECTION: "connection",
|
|
77
|
-
/**
|
|
78
|
-
* An HTTP cookie previously sent by the server with Set-Cookie (below). Permanent: standard.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* <code>Cookie: $Version=1, Skin=new,</code>
|
|
82
|
-
*/
|
|
83
|
-
COOKIE: "cookie",
|
|
84
|
-
/**
|
|
85
|
-
* The length of the request body in octets (8-bit bytes). Permanent.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* <code>Content-Length: 348</code>
|
|
89
|
-
*/
|
|
90
|
-
CONTENT_LENGTH: "content-length",
|
|
91
|
-
/**
|
|
92
|
-
* A Base64-encoded binary MD5 sum of the content of the request body. Obsolete.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* <code>Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==</code>
|
|
96
|
-
*/
|
|
97
|
-
CONTENT_MD5: "content-md5",
|
|
98
|
-
/**
|
|
99
|
-
* The MIME type of the body of the request (used with POST and PUT requests). Permanent.
|
|
100
|
-
* <code>Content-Type: application/x-www-form-urlencoded</code>
|
|
101
|
-
*/
|
|
102
|
-
CONTENT_TYPE: "content-type",
|
|
103
|
-
/**
|
|
104
|
-
* The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats).
|
|
105
|
-
* Permanent.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* <code>Date: Tue, 15 Nov 1994 08:12:31 GMT</code>
|
|
109
|
-
*/
|
|
110
|
-
DATE: "date",
|
|
111
|
-
/**
|
|
112
|
-
* The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The
|
|
113
|
-
* port number may be omitted if the port is the standard port for the service requested. Permanent. Mandatory since
|
|
114
|
-
* HTTP/1.1.
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* <code>Host: en.wikipedia.org:80</code>
|
|
118
|
-
* <code>Host: en.wikipedia.org</code>
|
|
119
|
-
*/
|
|
120
|
-
HOST: "host",
|
|
121
|
-
/**
|
|
122
|
-
* Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for
|
|
123
|
-
* methods like PUT to only update a resource if it has not been modified since the user last updated it. Permanent.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* <code>If-Match: "737060cd8c284d8af7ad3082f209582d"</code>
|
|
127
|
-
*/
|
|
128
|
-
IF_MATCH: "if-match",
|
|
129
|
-
/**
|
|
130
|
-
* Allows a 304 Not Modified to be returned if content is unchanged. Permanent.
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* <code>If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>
|
|
134
|
-
*/
|
|
135
|
-
IF_MODIFIED_SINCE: "if-modified-since",
|
|
136
|
-
/**
|
|
137
|
-
* Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag. Permanent.
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* <code>If-None-Match: "737060cd8c284d8af7ad3082f209582d"</code>
|
|
141
|
-
*/
|
|
142
|
-
IF_NONE_MATCH: "if-none-match",
|
|
143
|
-
/**
|
|
144
|
-
* If the entity is unchanged, send me the part(s) that I am missing, otherwise, send me the entire new entity.
|
|
145
|
-
* Permanent.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* <code>If-Range: "737060cd8c284d8af7ad3082f209582d"</code>
|
|
149
|
-
*/
|
|
150
|
-
IF_RANGE: "if-range",
|
|
151
|
-
/**
|
|
152
|
-
* Only send the response if the entity has not been modified since a specific time. Permanent.
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* <code>If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>
|
|
156
|
-
*/
|
|
157
|
-
IF_UNMODIFIED_SINCE: "if-unmodified-since",
|
|
158
|
-
/**
|
|
159
|
-
* Limit the number of times the message can be forwarded through proxies or gateways. Permanent.
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* <code>Max-Forwards: 10</code>
|
|
163
|
-
*/
|
|
164
|
-
MAX_FORWARDS: "max-forwards",
|
|
165
|
-
/**
|
|
166
|
-
* Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response
|
|
167
|
-
* field). Permanent: standard.
|
|
168
|
-
*
|
|
169
|
-
* @example
|
|
170
|
-
* <code>Origin: http://www.example-social-network.com</code>
|
|
171
|
-
*/
|
|
172
|
-
ORIGIN: "origin",
|
|
173
|
-
/**
|
|
174
|
-
* Implementation-specific fields that may have various effects anywhere along the request-response chain. Permanent.
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* <code>Pragma: no-cache</code>
|
|
178
|
-
*/
|
|
179
|
-
PRAGMA: "pragma",
|
|
180
|
-
/**
|
|
181
|
-
* Authorization credentials for connecting to a proxy. Permanent.
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* <code>Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>
|
|
185
|
-
*/
|
|
186
|
-
PROXY_AUTHORIZATION: "proxy-authorization",
|
|
187
|
-
/**
|
|
188
|
-
* Request only part of an entity. Bytes are numbered from 0. See Byte serving. Permanent.
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* <code>Range: bytes=500-999</code>
|
|
192
|
-
*/
|
|
193
|
-
RANGE: "range",
|
|
194
|
-
/**
|
|
195
|
-
* This is the address of the previous web page from which a link to the currently requested page was followed. (The
|
|
196
|
-
* word "referrer" has been misspelled in the RFC as well as in most implementations to the point that it has become
|
|
197
|
-
* standard usage and is considered correct terminology). Permanent.
|
|
198
|
-
*
|
|
199
|
-
* @example
|
|
200
|
-
* <code>Referer: http://en.wikipedia.org/wiki/Main_Page</code>
|
|
201
|
-
*/
|
|
202
|
-
REFERER: "referer",
|
|
203
|
-
/**
|
|
204
|
-
* The transfer encodings the user agent is willing to accept: the same values as for the response header field
|
|
205
|
-
* Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the
|
|
206
|
-
* server it expects to receive additional fields in the trailer after the last, zero-sized, chunk. Permanent.
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* <code>TE: trailers, deflate</code>
|
|
210
|
-
*/
|
|
211
|
-
TE: "te",
|
|
212
|
-
/**
|
|
213
|
-
* The user agent string of the user agent. Permanent.
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* <code>User-Agent: Mozilla/5.0 (X11, Linux x86_64, rv:12.0) Gecko/20100101 Firefox/21.0</code>
|
|
217
|
-
*/
|
|
218
|
-
USER_AGENT: "user-agent",
|
|
219
|
-
/**
|
|
220
|
-
* Ask the server to upgrade to another protocol. Permanent.
|
|
221
|
-
*
|
|
222
|
-
* @example
|
|
223
|
-
* <code>Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11</code>
|
|
224
|
-
*/
|
|
225
|
-
UPGRADE: "upgrade",
|
|
226
|
-
/**
|
|
227
|
-
* A general warning about possible problems with the entity body. Permanent.
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* <code>Warning: 199 Miscellaneous warning</code>
|
|
231
|
-
*/
|
|
232
|
-
WARNING: "warning",
|
|
233
|
-
/**
|
|
234
|
-
* mainly used to identify Ajax requests. Most JavaScript frameworks send this field with value of XMLHttpRequest.
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* <code>X-Requested-With: XMLHttpRequest</code>
|
|
238
|
-
*/
|
|
239
|
-
X_REQUESTED_WITH: "x-requested-with",
|
|
240
|
-
/**
|
|
241
|
-
* A de facto standard for identifying the originating IP address of a client connecting to a web server through an
|
|
242
|
-
* HTTP proxy or load balancer.
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* <code>X-Forwarded-For: client1, proxy1, proxy2</code>
|
|
246
|
-
* <code>X-Forwarded-For: 129.78.138.66, 129.78.64.103</code>
|
|
247
|
-
*/
|
|
248
|
-
X_FORWARDED_FOR: "x-forwarded-for",
|
|
249
|
-
/**
|
|
250
|
-
* A de facto standard for identifying the original host requested by the client in the Host HTTP request header, since
|
|
251
|
-
* the host name and/or port of the reverse proxy (load balancer) may differ from the origin server handling the
|
|
252
|
-
* request.
|
|
253
|
-
*
|
|
254
|
-
* @example
|
|
255
|
-
* <code>X-Forwarded-Host: en.wikipedia.org:80</code>
|
|
256
|
-
* <code>X-Forwarded-Host: en.wikipedia.org</code>
|
|
257
|
-
*/
|
|
258
|
-
X_FORWARDED_HOST: "x-forwarded-host",
|
|
259
|
-
/**
|
|
260
|
-
* A de facto standard for identifying the originating protocol of an HTTP request, since a reverse proxy (load
|
|
261
|
-
* balancer) may communicate with a web server using HTTP even if the request to the reverse proxy is HTTPS. An
|
|
262
|
-
* alternative form of the header (X-ProxyUser-Ip) is used by Google clients talking to Google servers.
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* <code>X-Forwarded-Proto: https</code>
|
|
266
|
-
*/
|
|
267
|
-
X_FORWARDED_PROTO: "x-forwarded-proto"
|
|
268
|
-
};
|
|
269
|
-
return __toCommonJS(request_header_exports);
|
|
1
|
+
(() => {
|
|
2
|
+
// iife:/home/runner/work/transportr/transportr/dist/request-header.js
|
|
3
|
+
var e = { ACCEPT: "accept", ACCEPT_CHARSET: "accept-charset", ACCEPT_ENCODING: "accept-encoding", ACCEPT_LANGUAGE: "accept-language", AUTHORIZATION: "authorization", CACHE_CONTROL: "cache-control", CONNECTION: "connection", COOKIE: "cookie", CONTENT_LENGTH: "content-length", CONTENT_MD5: "content-md5", CONTENT_TYPE: "content-type", DATE: "date", HOST: "host", IF_MATCH: "if-match", IF_MODIFIED_SINCE: "if-modified-since", IF_NONE_MATCH: "if-none-match", IF_RANGE: "if-range", IF_UNMODIFIED_SINCE: "if-unmodified-since", MAX_FORWARDS: "max-forwards", ORIGIN: "origin", PRAGMA: "pragma", PROXY_AUTHORIZATION: "proxy-authorization", RANGE: "range", REFERER: "referer", TE: "te", USER_AGENT: "user-agent", UPGRADE: "upgrade", WARNING: "warning", X_REQUESTED_WITH: "x-requested-with", X_FORWARDED_FOR: "x-forwarded-for", X_FORWARDED_HOST: "x-forwarded-host", X_FORWARDED_PROTO: "x-forwarded-proto" };
|
|
4
|
+
Object.assign(globalThis, { e });
|
|
270
5
|
})();
|
|
271
|
-
globalThis.RequestHeader = __mod.RequestHeader;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/request-header.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Defining a constant object with all the HTTP request headers.\n */\nconst RequestHeader = {\n\t/**\n\t * Content-Types that are acceptable for the response. See Content negotiation. Permanent.\n\t *\n\t * @example\n\t * <code>Accept: text/plain</code>\n\t */\n\tACCEPT: 'accept',\n\t/**\n\t * Character sets that are acceptable. Permanent.\n\t *\n\t * @example\n\t * <code>Accept-Charset: utf-8</code>\n\t */\n\tACCEPT_CHARSET: 'accept-charset',\n\t/**\n\t * List of acceptable encodings. See HTTP compression. Permanent.\n\t *\n\t * @example\n\t * <code>Accept-Encoding: gzip, deflate</code>\n\t */\n\tACCEPT_ENCODING: 'accept-encoding',\n\t/**\n\t * List of acceptable human languages for response. See Content negotiation. Permanent.\n\t *\n\t * @example\n\t * <code>Accept-Language: en-US</code>\n\t */\n\tACCEPT_LANGUAGE: 'accept-language',\n\t/**\n\t * Authentication credentials for HTTP authentication. Permanent.\n\t *\n\t * @example\n\t * <code>Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>\n\t */\n\tAUTHORIZATION: 'authorization',\n\t/**\n\t * Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.\n\t * Permanent.\n\t *\n\t * @example\n\t * <code>Cache-Control: no-cache</code>\n\t */\n\tCACHE_CONTROL: 'cache-control',\n\t/**\n\t * Control options for the current connection and list of hop-by-hop request fields. Permanent.\n\t *\n\t * @example\n\t * <code>Connection: keep-alive</code>\n\t * <code>Connection: Upgrade</code>\n\t */\n\tCONNECTION: 'connection',\n\t/**\n\t * An HTTP cookie previously sent by the server with Set-Cookie (below). Permanent: standard.\n\t *\n\t * @example\n\t * <code>Cookie: $Version=1, Skin=new,</code>\n\t */\n\tCOOKIE: 'cookie',\n\t/**\n\t * The length of the request body in octets (8-bit bytes). Permanent.\n\t *\n\t * @example\n\t * <code>Content-Length: 348</code>\n\t */\n\tCONTENT_LENGTH: 'content-length',\n\t/**\n\t * A Base64-encoded binary MD5 sum of the content of the request body. Obsolete.\n\t *\n\t * @example\n\t * <code>Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==</code>\n\t */\n\tCONTENT_MD5: 'content-md5',\n\t/**\n\t * The MIME type of the body of the request (used with POST and PUT requests). Permanent.\n\t * <code>Content-Type: application/x-www-form-urlencoded</code>\n\t */\n\tCONTENT_TYPE: 'content-type',\n\t/**\n\t * The date and time that the message was sent (in \"HTTP-date\" format as defined by RFC 7231 Date/Time Formats).\n\t * Permanent.\n\t *\n\t * @example\n\t * <code>Date: Tue, 15 Nov 1994 08:12:31 GMT</code>\n\t */\n\tDATE: 'date',\n\t/**\n\t * The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The\n\t * port number may be omitted if the port is the standard port for the service requested. Permanent. Mandatory since\n\t * HTTP/1.1.\n\t *\n\t * @example\n\t * <code>Host: en.wikipedia.org:80</code>\n\t * <code>Host: en.wikipedia.org</code>\n\t */\n\tHOST: 'host',\n\t/**\n\t * Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for\n\t * methods like PUT to only update a resource if it has not been modified since the user last updated it. Permanent.\n\t *\n\t * @example\n\t * <code>If-Match: \"737060cd8c284d8af7ad3082f209582d\"</code>\n\t */\n\tIF_MATCH: 'if-match',\n\t/**\n\t * Allows a 304 Not Modified to be returned if content is unchanged. Permanent.\n\t *\n\t * @example\n\t * <code>If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>\n\t */\n\tIF_MODIFIED_SINCE: 'if-modified-since',\n\t/**\n\t * Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag. Permanent.\n\t *\n\t * @example\n\t * <code>If-None-Match: \"737060cd8c284d8af7ad3082f209582d\"</code>\n\t */\n\tIF_NONE_MATCH: 'if-none-match',\n\t/**\n\t * If the entity is unchanged, send me the part(s) that I am missing, otherwise, send me the entire new entity.\n\t * Permanent.\n\t *\n\t * @example\n\t * <code>If-Range: \"737060cd8c284d8af7ad3082f209582d\"</code>\n\t */\n\tIF_RANGE: 'if-range',\n\t/**\n\t * Only send the response if the entity has not been modified since a specific time. Permanent.\n\t *\n\t * @example\n\t * <code>If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>\n\t */\n\tIF_UNMODIFIED_SINCE: 'if-unmodified-since',\n\t/**\n\t * Limit the number of times the message can be forwarded through proxies or gateways. Permanent.\n\t *\n\t * @example\n\t * <code>Max-Forwards: 10</code>\n\t */\n\tMAX_FORWARDS: 'max-forwards',\n\t/**\n\t * Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response\n\t * field). Permanent: standard.\n\t *\n\t * @example\n\t * <code>Origin: http://www.example-social-network.com</code>\n\t */\n\tORIGIN: 'origin',\n\t/**\n\t * Implementation-specific fields that may have various effects anywhere along the request-response chain. Permanent.\n\t *\n\t * @example\n\t * <code>Pragma: no-cache</code>\n\t */\n\tPRAGMA: 'pragma',\n\t/**\n\t * Authorization credentials for connecting to a proxy. Permanent.\n\t *\n\t * @example\n\t * <code>Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>\n\t */\n\tPROXY_AUTHORIZATION: 'proxy-authorization',\n\t/**\n\t * Request only part of an entity. Bytes are numbered from 0. See Byte serving. Permanent.\n\t *\n\t * @example\n\t * <code>Range: bytes=500-999</code>\n\t */\n\tRANGE: 'range',\n\t/**\n\t * This is the address of the previous web page from which a link to the currently requested page was followed. (The\n\t * word \"referrer\" has been misspelled in the RFC as well as in most implementations to the point that it has become\n\t * standard usage and is considered correct terminology). Permanent.\n\t *\n\t * @example\n\t * <code>Referer: http://en.wikipedia.org/wiki/Main_Page</code>\n\t */\n\tREFERER: 'referer',\n\t/**\n\t * The transfer encodings the user agent is willing to accept: the same values as for the response header field\n\t * Transfer-Encoding can be used, plus the \"trailers\" value (related to the \"chunked\" transfer method) to notify the\n\t * server it expects to receive additional fields in the trailer after the last, zero-sized, chunk. Permanent.\n\t *\n\t * @example\n\t * <code>TE: trailers, deflate</code>\n\t */\n\tTE: 'te',\n\t/**\n\t * The user agent string of the user agent. Permanent.\n\t *\n\t * @example\n\t * <code>User-Agent: Mozilla/5.0 (X11, Linux x86_64, rv:12.0) Gecko/20100101 Firefox/21.0</code>\n\t */\n\tUSER_AGENT: 'user-agent',\n\t/**\n\t * Ask the server to upgrade to another protocol. Permanent.\n\t *\n\t * @example\n\t * <code>Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11</code>\n\t */\n\tUPGRADE: 'upgrade',\n\t/**\n\t * A general warning about possible problems with the entity body. Permanent.\n\t *\n\t * @example\n\t * <code>Warning: 199 Miscellaneous warning</code>\n\t */\n\tWARNING: 'warning',\n\t/**\n\t * mainly used to identify Ajax requests. Most JavaScript frameworks send this field with value of XMLHttpRequest.\n\t *\n\t * @example\n\t * <code>X-Requested-With: XMLHttpRequest</code>\n\t */\n\tX_REQUESTED_WITH: 'x-requested-with',\n\t/**\n\t * A de facto standard for identifying the originating IP address of a client connecting to a web server through an\n\t * HTTP proxy or load balancer.\n\t *\n\t * @example\n\t * <code>X-Forwarded-For: client1, proxy1, proxy2</code>\n\t * <code>X-Forwarded-For: 129.78.138.66, 129.78.64.103</code>\n\t */\n\tX_FORWARDED_FOR: 'x-forwarded-for',\n\t/**\n\t * A de facto standard for identifying the original host requested by the client in the Host HTTP request header, since\n\t * the host name and/or port of the reverse proxy (load balancer) may differ from the origin server handling the\n\t * request.\n\t *\n\t * @example\n\t * <code>X-Forwarded-Host: en.wikipedia.org:80</code>\n\t * <code>X-Forwarded-Host: en.wikipedia.org</code>\n\t */\n\tX_FORWARDED_HOST: 'x-forwarded-host',\n\t/**\n\t * A de facto standard for identifying the originating protocol of an HTTP request, since a reverse proxy (load\n\t * balancer) may communicate with a web server using HTTP even if the request to the reverse proxy is HTTPS. An\n\t * alternative form of the header (X-ProxyUser-Ip) is used by Google clients talking to Google servers.\n\t *\n\t * @example\n\t * <code>X-Forwarded-Proto: https</code>\n\t */\n\tX_FORWARDED_PROTO: 'x-forwarded-proto'\n} as const;\n\nexport { RequestHeader };"],
|
|
5
|
+
"mappings": ";AAGA,IAAMA,IAAgB,EAOrB,QAAQ,UAOR,gBAAgB,kBAOhB,iBAAiB,mBAOjB,iBAAiB,mBAOjB,eAAe,iBAQf,eAAe,iBAQf,YAAY,cAOZ,QAAQ,UAOR,gBAAgB,kBAOhB,aAAa,eAKb,cAAc,gBAQd,MAAM,QAUN,MAAM,QAQN,UAAU,YAOV,mBAAmB,qBAOnB,eAAe,iBAQf,UAAU,YAOV,qBAAqB,uBAOrB,cAAc,gBAQd,QAAQ,UAOR,QAAQ,UAOR,qBAAqB,uBAOrB,OAAO,SASP,SAAS,WAST,IAAI,MAOJ,YAAY,cAOZ,SAAS,WAOT,SAAS,WAOT,kBAAkB,oBASlB,iBAAiB,mBAUjB,kBAAkB,oBASlB,mBAAmB,oBACpB;",
|
|
6
|
+
"names": ["RequestHeader"]
|
|
7
|
+
}
|