@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
|
@@ -1,369 +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/response-header.ts
|
|
21
|
-
var response_header_exports = {};
|
|
22
|
-
__export(response_header_exports, {
|
|
23
|
-
ResponseHeader: () => ResponseHeader
|
|
24
|
-
});
|
|
25
|
-
var ResponseHeader = {
|
|
26
|
-
/**
|
|
27
|
-
* Implemented as a misunderstanding of the HTTP specifications. Common because of mistakes in implementations of early HTTP versions. Has exactly the same functionality as standard Connection field.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* proxy-connection: keep-alive
|
|
31
|
-
*/
|
|
32
|
-
PROXY_CONNECTION: "proxy-connection",
|
|
33
|
-
/**
|
|
34
|
-
* Server-side deep packet insertion of a unique ID identifying customers of Verizon Wireless, also known as "perma-cookie" or "supercookie"
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* x-uidh: ...
|
|
38
|
-
*/
|
|
39
|
-
X_UIDH: "x-uidh",
|
|
40
|
-
/**
|
|
41
|
-
* Used to prevent cross-site request forgery. Alternative header names are: X-CSRFToken and X-XSRF-TOKEN
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* x-csrf-token: i8XNjC4b8KVok4uw5RftR38Wgp2BFwql
|
|
45
|
-
*/
|
|
46
|
-
X_CSRF_TOKEN: "x-csrf-token",
|
|
47
|
-
/**
|
|
48
|
-
* Specifying which web sites can participate in cross-origin resource sharing
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* access-control-allow-origin: *
|
|
52
|
-
* Provisional
|
|
53
|
-
*/
|
|
54
|
-
ACCESS_CONTROL_ALLOW_ORIGIN: "access-control-allow-origin",
|
|
55
|
-
/**
|
|
56
|
-
* Specifies which patch document formats this server supports
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* accept-patch: text/example,charset=utf-8
|
|
60
|
-
* Permanent
|
|
61
|
-
*/
|
|
62
|
-
ACCEPT_PATCH: "accept-patch",
|
|
63
|
-
/**
|
|
64
|
-
* What partial content range types this server supports via byte serving
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* accept-ranges: bytes
|
|
68
|
-
* Permanent
|
|
69
|
-
*/
|
|
70
|
-
ACCEPT_RANGES: "accept-ranges",
|
|
71
|
-
/**
|
|
72
|
-
* The age the object has been in a proxy cache in seconds
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* age: 12
|
|
76
|
-
* Permanent
|
|
77
|
-
*/
|
|
78
|
-
AGE: "age",
|
|
79
|
-
/**
|
|
80
|
-
* Valid actions for a specified resource. To be used for a 405 Method not allowed
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* allow: GET, HEAD
|
|
84
|
-
* Permanent
|
|
85
|
-
*/
|
|
86
|
-
ALLOW: "allow",
|
|
87
|
-
/**
|
|
88
|
-
* Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* cache-control: max-age=3600
|
|
92
|
-
* Permanent
|
|
93
|
-
*/
|
|
94
|
-
CACHE_CONTROL: "cache-control",
|
|
95
|
-
/**
|
|
96
|
-
* Control options for the current connection and list of hop-by-hop response fields
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* connection: close
|
|
100
|
-
* Permanent
|
|
101
|
-
*/
|
|
102
|
-
CONNECTION: "connection",
|
|
103
|
-
/**
|
|
104
|
-
* An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. Quotes are necessary with special characters.
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* content-disposition: attachment, filename="fname.ext"
|
|
108
|
-
* Permanent
|
|
109
|
-
*/
|
|
110
|
-
CONTENT_DISPOSITION: "content-disposition",
|
|
111
|
-
/**
|
|
112
|
-
* The type of encoding used on the data. See HTTP compression.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* content-encoding: gzip
|
|
116
|
-
* Permanent
|
|
117
|
-
*/
|
|
118
|
-
CONTENT_ENCODING: "content-encoding",
|
|
119
|
-
/**
|
|
120
|
-
* The natural language or languages of the intended audience for the enclosed content
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* content-language: da
|
|
124
|
-
* Permanent
|
|
125
|
-
*/
|
|
126
|
-
CONTENT_LANGUAGE: "content-language",
|
|
127
|
-
/**
|
|
128
|
-
* The length of the response body in octets (8-bit bytes)
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* content-length: 348
|
|
132
|
-
* Permanent
|
|
133
|
-
*/
|
|
134
|
-
CONTENT_LENGTH: "content-length",
|
|
135
|
-
/**
|
|
136
|
-
* An alternate location for the returned data
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* content-location: /index.htm
|
|
140
|
-
* Permanent
|
|
141
|
-
*/
|
|
142
|
-
CONTENT_LOCATION: "content-location",
|
|
143
|
-
/**
|
|
144
|
-
* Where in a full body message this partial message belongs
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* content-range: bytes 21010-47021/47022
|
|
148
|
-
* Permanent
|
|
149
|
-
*/
|
|
150
|
-
CONTENT_RANGE: "content-range",
|
|
151
|
-
/**
|
|
152
|
-
* The MIME type of this content
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* content-type: text/html, charset=utf-8
|
|
156
|
-
* Permanent
|
|
157
|
-
*/
|
|
158
|
-
CONTENT_TYPE: "content-type",
|
|
159
|
-
/**
|
|
160
|
-
* The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231)
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* date: Tue, 15 Nov 1994 08:12:31 GMT
|
|
164
|
-
* Permanent
|
|
165
|
-
*/
|
|
166
|
-
DATE: "date",
|
|
167
|
-
/**
|
|
168
|
-
* An identifier for a specific version of a resource, often a message digest
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* etag: "737060cd8c284d8af7ad3082f209582d"
|
|
172
|
-
* Permanent
|
|
173
|
-
*/
|
|
174
|
-
ETAG: "etag",
|
|
175
|
-
/**
|
|
176
|
-
* Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231)
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* expires: Thu, 01 Dec 1994 16:00:00 GMT
|
|
180
|
-
* Permanent
|
|
181
|
-
*/
|
|
182
|
-
EXPIRES: "expires",
|
|
183
|
-
/**
|
|
184
|
-
* The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231)
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* last-modified: Tue, 15 Nov 1994 12:45:26 GMT
|
|
188
|
-
* Permanent
|
|
189
|
-
*/
|
|
190
|
-
LAST_MODIFIED: "last-modified",
|
|
191
|
-
/**
|
|
192
|
-
* Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* link: </feed>, rel="alternate"
|
|
196
|
-
* Permanent
|
|
197
|
-
*/
|
|
198
|
-
LINK: "link",
|
|
199
|
-
/**
|
|
200
|
-
* Used in redirection, or when a new resource has been created.
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* location: http://www.w3.org/pub/WWW/People.html
|
|
204
|
-
* Permanent
|
|
205
|
-
*/
|
|
206
|
-
LOCATION: "location",
|
|
207
|
-
/**
|
|
208
|
-
* This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". However, P3P did not take off, most browsers have never fully
|
|
209
|
-
* implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third party cookies.
|
|
210
|
-
*
|
|
211
|
-
* @example
|
|
212
|
-
* p3p: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
|
|
213
|
-
* Permanent
|
|
214
|
-
*/
|
|
215
|
-
P3P: "p3p",
|
|
216
|
-
/**
|
|
217
|
-
* Implementation-specific fields that may have various effects anywhere along the request-response chain.
|
|
218
|
-
*
|
|
219
|
-
* @example
|
|
220
|
-
* pragma: no-cache
|
|
221
|
-
* Permanent
|
|
222
|
-
*/
|
|
223
|
-
PRAGMA: "pragma",
|
|
224
|
-
/**
|
|
225
|
-
* Request authentication to access the proxy.
|
|
226
|
-
*
|
|
227
|
-
* @example
|
|
228
|
-
* proxy-authenticate: Basic
|
|
229
|
-
* Permanent
|
|
230
|
-
*/
|
|
231
|
-
PROXY_AUTHENTICATION: "proxy-authenticate",
|
|
232
|
-
/**
|
|
233
|
-
* HTTP Public Key Pinning, announces hash of website's authentic TLS certificate
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* public-key-pins: max-age=2592000, pin-sha256="E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g=",
|
|
237
|
-
* Permanent
|
|
238
|
-
*/
|
|
239
|
-
PUBLIC_KEY_PINS: "public-key-pins",
|
|
240
|
-
/**
|
|
241
|
-
* If an entity is temporarily unavailable, this instructs the client to try again later. Value could be a specified period of time (in seconds) or a HTTP-date.
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* retry-after: 120
|
|
245
|
-
* retry-after: Fri, 07 Nov 2014 23:59:59 GMT
|
|
246
|
-
* Permanent
|
|
247
|
-
*/
|
|
248
|
-
RETRY_AFTER: "retry-after",
|
|
249
|
-
/**
|
|
250
|
-
* A name for the server
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* server: Apache/2.4.1 (Unix)
|
|
254
|
-
* Permanent
|
|
255
|
-
*/
|
|
256
|
-
SERVER: "server",
|
|
257
|
-
/**
|
|
258
|
-
* An HTTP cookie
|
|
259
|
-
*
|
|
260
|
-
* @example
|
|
261
|
-
* set-cookie: UserID=JohnDoe, Max-Age=3600, Version=1
|
|
262
|
-
* Permanent
|
|
263
|
-
*/
|
|
264
|
-
SET_COOKIE: "set-cookie",
|
|
265
|
-
/**
|
|
266
|
-
* CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 7230.
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* status: 200 OK
|
|
270
|
-
*/
|
|
271
|
-
STATUS: "status",
|
|
272
|
-
/**
|
|
273
|
-
* A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* strict-transport-security: max-age=16070400, includeSubDomains
|
|
277
|
-
* Permanent
|
|
278
|
-
*/
|
|
279
|
-
STRICT_TRANSPORT_SECURITY: "strict-transport-security",
|
|
280
|
-
/**
|
|
281
|
-
* The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding.
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* trailer: Max-Forwards
|
|
285
|
-
* Permanent
|
|
286
|
-
*/
|
|
287
|
-
TRAILER: "trailer",
|
|
288
|
-
/**
|
|
289
|
-
* The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity.
|
|
290
|
-
*
|
|
291
|
-
* @example
|
|
292
|
-
* transfer-encoding: chunked
|
|
293
|
-
* Permanent
|
|
294
|
-
*/
|
|
295
|
-
TRANSFER_ENCODING: "transfer-encoding",
|
|
296
|
-
/**
|
|
297
|
-
* Ask the client to upgrade to another protocol.
|
|
298
|
-
*
|
|
299
|
-
* @example
|
|
300
|
-
* upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
|
|
301
|
-
* Permanent
|
|
302
|
-
*/
|
|
303
|
-
UPGRADE: "upgrade",
|
|
304
|
-
/**
|
|
305
|
-
* Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* vary: *
|
|
309
|
-
* Permanent
|
|
310
|
-
*/
|
|
311
|
-
VARY: "vary",
|
|
312
|
-
/**
|
|
313
|
-
* Informs the client of proxies through which the response was sent.
|
|
314
|
-
*
|
|
315
|
-
* @example
|
|
316
|
-
* via: 1.0 fred, 1.1 example.com (Apache/1.1)
|
|
317
|
-
* Permanent
|
|
318
|
-
*/
|
|
319
|
-
VIA: "via",
|
|
320
|
-
/**
|
|
321
|
-
* A general warning about possible problems with the entity body.
|
|
322
|
-
*
|
|
323
|
-
* @example
|
|
324
|
-
* warning: 199 Miscellaneous warning
|
|
325
|
-
* Permanent
|
|
326
|
-
*/
|
|
327
|
-
WARNING: "warning",
|
|
328
|
-
/**
|
|
329
|
-
* Indicates the authentication scheme that should be used to access the requested entity.
|
|
330
|
-
*
|
|
331
|
-
* @example
|
|
332
|
-
* www-authenticate: Basic
|
|
333
|
-
* Permanent
|
|
334
|
-
*/
|
|
335
|
-
WWW_AUTHENTICATE: "www-authenticate",
|
|
336
|
-
/**
|
|
337
|
-
* Cross-site scripting (XSS) filter
|
|
338
|
-
*
|
|
339
|
-
* @example
|
|
340
|
-
* x-xss-protection: 1, mode=block
|
|
341
|
-
*/
|
|
342
|
-
X_XSS_PROTECTION: "x-xss-protection",
|
|
343
|
-
/**
|
|
344
|
-
* The HTTP Content-Security-Policy response header allows web site administrators to control resources the user agent is allowed
|
|
345
|
-
* to load for a given page. With a few exceptions, policies mostly involve specifying server origins and script endpoints.
|
|
346
|
-
* This helps guard against cross-site scripting attacks (Cross-site_scripting).
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* content-security-policy: default-src
|
|
350
|
-
*/
|
|
351
|
-
CONTENT_SECURITY_POLICY: "content-security-policy",
|
|
352
|
-
/**
|
|
353
|
-
* The only defined value, "nosniff", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions.
|
|
354
|
-
*
|
|
355
|
-
* @example
|
|
356
|
-
* x-content-type-options: nosniff
|
|
357
|
-
*/
|
|
358
|
-
X_CONTENT_TYPE_OPTIONS: "x-content-type-options",
|
|
359
|
-
/**
|
|
360
|
-
* specifies the technology (e.g. ASP.NET, PHP, JBoss) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)
|
|
361
|
-
*
|
|
362
|
-
* @example
|
|
363
|
-
* x-powered-by: PHP/5.4.0
|
|
364
|
-
*/
|
|
365
|
-
X_POWERED_BY: "x-powered-by"
|
|
366
|
-
};
|
|
367
|
-
return __toCommonJS(response_header_exports);
|
|
1
|
+
(() => {
|
|
2
|
+
// iife:/home/runner/work/transportr/transportr/dist/response-header.js
|
|
3
|
+
var t = { PROXY_CONNECTION: "proxy-connection", X_UIDH: "x-uidh", X_CSRF_TOKEN: "x-csrf-token", ACCESS_CONTROL_ALLOW_ORIGIN: "access-control-allow-origin", ACCEPT_PATCH: "accept-patch", ACCEPT_RANGES: "accept-ranges", AGE: "age", ALLOW: "allow", CACHE_CONTROL: "cache-control", CONNECTION: "connection", CONTENT_DISPOSITION: "content-disposition", CONTENT_ENCODING: "content-encoding", CONTENT_LANGUAGE: "content-language", CONTENT_LENGTH: "content-length", CONTENT_LOCATION: "content-location", CONTENT_RANGE: "content-range", CONTENT_TYPE: "content-type", DATE: "date", ETAG: "etag", EXPIRES: "expires", LAST_MODIFIED: "last-modified", LINK: "link", LOCATION: "location", P3P: "p3p", PRAGMA: "pragma", PROXY_AUTHENTICATION: "proxy-authenticate", PUBLIC_KEY_PINS: "public-key-pins", RETRY_AFTER: "retry-after", SERVER: "server", SET_COOKIE: "set-cookie", STATUS: "status", STRICT_TRANSPORT_SECURITY: "strict-transport-security", TRAILER: "trailer", TRANSFER_ENCODING: "transfer-encoding", UPGRADE: "upgrade", VARY: "vary", VIA: "via", WARNING: "warning", WWW_AUTHENTICATE: "www-authenticate", X_XSS_PROTECTION: "x-xss-protection", CONTENT_SECURITY_POLICY: "content-security-policy", X_CONTENT_TYPE_OPTIONS: "x-content-type-options", X_POWERED_BY: "x-powered-by" };
|
|
4
|
+
Object.assign(globalThis, { t });
|
|
368
5
|
})();
|
|
369
|
-
globalThis.ResponseHeader = __mod.ResponseHeader;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/response-header.ts"],
|
|
4
|
+
"sourcesContent": ["/** Defining a constant object HTTP response headers */\nconst ResponseHeader = {\n\t/**\n\t * Implemented as a misunderstanding of the HTTP specifications. Common because of mistakes in implementations of early HTTP versions. Has exactly the same functionality as standard Connection field.\n\t *\n\t * @example\n\t * proxy-connection: keep-alive\n\t */\n\tPROXY_CONNECTION: 'proxy-connection',\n\t/**\n\t * Server-side deep packet insertion of a unique ID identifying customers of Verizon Wireless, also known as \"perma-cookie\" or \"supercookie\"\n\t *\n\t * @example\n\t * x-uidh: ...\n\t */\n\tX_UIDH: 'x-uidh',\n\t/**\n\t * Used to prevent cross-site request forgery. Alternative header names are: X-CSRFToken and X-XSRF-TOKEN\n\t *\n\t * @example\n\t * x-csrf-token: i8XNjC4b8KVok4uw5RftR38Wgp2BFwql\n\t */\n\tX_CSRF_TOKEN: 'x-csrf-token',\n\t/**\n\t * Specifying which web sites can participate in cross-origin resource sharing\n\t *\n\t * @example\n\t * access-control-allow-origin: *\n\t * Provisional\n\t */\n\tACCESS_CONTROL_ALLOW_ORIGIN: 'access-control-allow-origin',\n\t/**\n\t * Specifies which patch document formats this server supports\n\t *\n\t * @example\n\t * accept-patch: text/example,charset=utf-8\n\t * Permanent\n\t */\n\tACCEPT_PATCH: 'accept-patch',\n\t/**\n\t * What partial content range types this server supports via byte serving\n\t *\n\t * @example\n\t * accept-ranges: bytes\n\t * Permanent\n\t */\n\tACCEPT_RANGES: 'accept-ranges',\n\t/**\n\t * The age the object has been in a proxy cache in seconds\n\t *\n\t * @example\n\t * age: 12\n\t * Permanent\n\t */\n\tAGE: 'age',\n\t/**\n\t * Valid actions for a specified resource. To be used for a 405 Method not allowed\n\t *\n\t * @example\n\t * allow: GET, HEAD\n\t * Permanent\n\t */\n\tALLOW: 'allow',\n\t/**\n\t * Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds\n\t *\n\t * @example\n\t * cache-control: max-age=3600\n\t * Permanent\n\t */\n\tCACHE_CONTROL: 'cache-control',\n\t/**\n\t * Control options for the current connection and list of hop-by-hop response fields\n\t *\n\t * @example\n\t * connection: close\n\t * Permanent\n\t */\n\tCONNECTION: 'connection',\n\t/**\n\t * An opportunity to raise a \"File Download\" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. Quotes are necessary with special characters.\n\t *\n\t * @example\n\t * content-disposition: attachment, filename=\"fname.ext\"\n\t * Permanent\n\t */\n\tCONTENT_DISPOSITION: 'content-disposition',\n\t/**\n\t * The type of encoding used on the data. See HTTP compression.\n\t *\n\t * @example\n\t * content-encoding: gzip\n\t * Permanent\n\t */\n\tCONTENT_ENCODING: 'content-encoding',\n\t/**\n\t * The natural language or languages of the intended audience for the enclosed content\n\t *\n\t * @example\n\t * content-language: da\n\t * Permanent\n\t */\n\tCONTENT_LANGUAGE: 'content-language',\n\t/**\n\t * The length of the response body in octets (8-bit bytes)\n\t *\n\t * @example\n\t * content-length: 348\n\t * Permanent\n\t */\n\tCONTENT_LENGTH: 'content-length',\n\t/**\n\t * An alternate location for the returned data\n\t *\n\t * @example\n\t * content-location: /index.htm\n\t * Permanent\n\t */\n\tCONTENT_LOCATION: 'content-location',\n\t/**\n\t * Where in a full body message this partial message belongs\n\t *\n\t * @example\n\t * content-range: bytes 21010-47021/47022\n\t * Permanent\n\t */\n\tCONTENT_RANGE: 'content-range',\n\t/**\n\t * The MIME type of this content\n\t *\n\t * @example\n\t * content-type: text/html, charset=utf-8\n\t * Permanent\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)\n\t *\n\t * @example\n\t * date: Tue, 15 Nov 1994 08:12:31 GMT\n\t * Permanent\n\t */\n\tDATE: 'date',\n\t/**\n\t * An identifier for a specific version of a resource, often a message digest\n\t *\n\t * @example\n\t * etag: \"737060cd8c284d8af7ad3082f209582d\"\n\t * Permanent\n\t */\n\tETAG: 'etag',\n\t/**\n\t * Gives the date/time after which the response is considered stale (in \"HTTP-date\" format as defined by RFC 7231)\n\t *\n\t * @example\n\t * expires: Thu, 01 Dec 1994 16:00:00 GMT\n\t * Permanent\n\t */\n\tEXPIRES: 'expires',\n\t/**\n\t * The last modified date for the requested object (in \"HTTP-date\" format as defined by RFC 7231)\n\t *\n\t * @example\n\t * last-modified: Tue, 15 Nov 1994 12:45:26 GMT\n\t * Permanent\n\t */\n\tLAST_MODIFIED: 'last-modified',\n\t/**\n\t * Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988\n\t *\n\t * @example\n\t * link: </feed>, rel=\"alternate\"\n\t * Permanent\n\t */\n\tLINK: 'link',\n\t/**\n\t * Used in redirection, or when a new resource has been created.\n\t *\n\t * @example\n\t * location: http://www.w3.org/pub/WWW/People.html\n\t * Permanent\n\t */\n\tLOCATION: 'location',\n\t/**\n\t * This field is supposed to set P3P policy, in the form of P3P:CP=\"your_compact_policy\". However, P3P did not take off, most browsers have never fully\n\t * implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third party cookies.\n\t *\n\t * @example\n\t * p3p: CP=\"This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info.\"\n\t * Permanent\n\t */\n\tP3P: 'p3p',\n\t/**\n\t * Implementation-specific fields that may have various effects anywhere along the request-response chain.\n\t *\n\t * @example\n\t * pragma: no-cache\n\t * Permanent\n\t */\n\tPRAGMA: 'pragma',\n\t/**\n\t * Request authentication to access the proxy.\n\t *\n\t * @example\n\t * proxy-authenticate: Basic\n\t * Permanent\n\t */\n\tPROXY_AUTHENTICATION: 'proxy-authenticate',\n\t/**\n\t * HTTP Public Key Pinning, announces hash of website's authentic TLS certificate\n\t *\n\t * @example\n\t * public-key-pins: max-age=2592000, pin-sha256=\"E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g=\",\n\t * Permanent\n\t */\n\tPUBLIC_KEY_PINS: 'public-key-pins',\n\t/**\n\t * If an entity is temporarily unavailable, this instructs the client to try again later. Value could be a specified period of time (in seconds) or a HTTP-date.\n\t *\n\t * @example\n\t * retry-after: 120\n\t * retry-after: Fri, 07 Nov 2014 23:59:59 GMT\n\t * Permanent\n\t */\n\tRETRY_AFTER: 'retry-after',\n\t/**\n\t * A name for the server\n\t *\n\t * @example\n\t * server: Apache/2.4.1 (Unix)\n\t * Permanent\n\t */\n\tSERVER: 'server',\n\t/**\n\t * An HTTP cookie\n\t *\n\t * @example\n\t * set-cookie: UserID=JohnDoe, Max-Age=3600, Version=1\n\t * Permanent\n\t */\n\tSET_COOKIE: 'set-cookie',\n\t/**\n\t * CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate \"Status-Line\" instead, defined by RFC 7230.\n\t *\n\t * @example\n\t * status: 200 OK\n\t */\n\tSTATUS: 'status',\n\t/**\n\t * A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.\n\t *\n\t * @example\n\t * strict-transport-security: max-age=16070400, includeSubDomains\n\t * Permanent\n\t */\n\tSTRICT_TRANSPORT_SECURITY: 'strict-transport-security',\n\t/**\n\t * The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding.\n\t *\n\t * @example\n\t * trailer: Max-Forwards\n\t * Permanent\n\t */\n\tTRAILER: 'trailer',\n\t/**\n\t * The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity.\n\t *\n\t * @example\n\t * transfer-encoding: chunked\n\t * Permanent\n\t */\n\tTRANSFER_ENCODING: 'transfer-encoding',\n\t/**\n\t * Ask the client to upgrade to another protocol.\n\t *\n\t * @example\n\t * upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11\n\t * Permanent\n\t */\n\tUPGRADE: 'upgrade',\n\t/**\n\t * Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.\n\t *\n\t * @example\n\t * vary: *\n\t * Permanent\n\t */\n\tVARY: 'vary',\n\t/**\n\t * Informs the client of proxies through which the response was sent.\n\t *\n\t * @example\n\t * via: 1.0 fred, 1.1 example.com (Apache/1.1)\n\t * Permanent\n\t */\n\tVIA: 'via',\n\t/**\n\t * A general warning about possible problems with the entity body.\n\t *\n\t * @example\n\t * warning: 199 Miscellaneous warning\n\t * Permanent\n\t */\n\tWARNING: 'warning',\n\t/**\n\t * Indicates the authentication scheme that should be used to access the requested entity.\n\t *\n\t * @example\n\t * www-authenticate: Basic\n\t * Permanent\n\t */\n\tWWW_AUTHENTICATE: 'www-authenticate',\n\t/**\n\t * Cross-site scripting (XSS) filter\n\t *\n\t * @example\n\t * x-xss-protection: 1, mode=block\n\t */\n\tX_XSS_PROTECTION: 'x-xss-protection',\n\t/**\n\t * The HTTP Content-Security-Policy response header allows web site administrators to control resources the user agent is allowed\n\t * to load for a given page. With a few exceptions, policies mostly involve specifying server origins and script endpoints.\n\t * This helps guard against cross-site scripting attacks (Cross-site_scripting).\n\t *\n\t * @example\n\t * content-security-policy: default-src\n\t */\n\tCONTENT_SECURITY_POLICY: 'content-security-policy',\n\t/**\n\t * The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions.\n\t *\n\t * @example\n\t * x-content-type-options: nosniff\n\t */\n\tX_CONTENT_TYPE_OPTIONS: 'x-content-type-options',\n\t/**\n\t * specifies the technology (e.g. ASP.NET, PHP, JBoss) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)\n\t *\n\t * @example\n\t * x-powered-by: PHP/5.4.0\n\t */\n\tX_POWERED_BY: 'x-powered-by'\n} as const;\n\nexport { ResponseHeader };"],
|
|
5
|
+
"mappings": ";AACA,IAAMA,IAAiB,EAOtB,kBAAkB,oBAOlB,QAAQ,UAOR,cAAc,gBAQd,6BAA6B,+BAQ7B,cAAc,gBAQd,eAAe,iBAQf,KAAK,OAQL,OAAO,SAQP,eAAe,iBAQf,YAAY,cAQZ,qBAAqB,uBAQrB,kBAAkB,oBAQlB,kBAAkB,oBAQlB,gBAAgB,kBAQhB,kBAAkB,oBAQlB,eAAe,iBAQf,cAAc,gBAQd,MAAM,QAQN,MAAM,QAQN,SAAS,WAQT,eAAe,iBAQf,MAAM,QAQN,UAAU,YASV,KAAK,OAQL,QAAQ,UAQR,sBAAsB,sBAQtB,iBAAiB,mBASjB,aAAa,eAQb,QAAQ,UAQR,YAAY,cAOZ,QAAQ,UAQR,2BAA2B,6BAQ3B,SAAS,WAQT,mBAAmB,qBAQnB,SAAS,WAQT,MAAM,QAQN,KAAK,OAQL,SAAS,WAQT,kBAAkB,oBAOlB,kBAAkB,oBASlB,yBAAyB,2BAOzB,wBAAwB,0BAOxB,cAAc,eACf;",
|
|
6
|
+
"names": ["ResponseHeader"]
|
|
7
|
+
}
|