@d1g1tal/transportr 2.0.0 → 2.1.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.
@@ -0,0 +1,249 @@
1
+ /**
2
+ * Defining a constant object with all the HTTP request headers.
3
+ */
4
+ declare const HttpRequestHeader: {
5
+ /**
6
+ * Content-Types that are acceptable for the response. See Content negotiation. Permanent.
7
+ *
8
+ * @example
9
+ * <code>Accept: text/plain</code>
10
+ */
11
+ readonly ACCEPT: "accept";
12
+ /**
13
+ * Character sets that are acceptable. Permanent.
14
+ *
15
+ * @example
16
+ * <code>Accept-Charset: utf-8</code>
17
+ */
18
+ readonly ACCEPT_CHARSET: "accept-charset";
19
+ /**
20
+ * List of acceptable encodings. See HTTP compression. Permanent.
21
+ *
22
+ * @example
23
+ * <code>Accept-Encoding: gzip, deflate</code>
24
+ */
25
+ readonly ACCEPT_ENCODING: "accept-encoding";
26
+ /**
27
+ * List of acceptable human languages for response. See Content negotiation. Permanent.
28
+ *
29
+ * @example
30
+ * <code>Accept-Language: en-US</code>
31
+ */
32
+ readonly ACCEPT_LANGUAGE: "accept-language";
33
+ /**
34
+ * Authentication credentials for HTTP authentication. Permanent.
35
+ *
36
+ * @example
37
+ * <code>Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>
38
+ */
39
+ readonly AUTHORIZATION: "authorization";
40
+ /**
41
+ * Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
42
+ * Permanent.
43
+ *
44
+ * @example
45
+ * <code>Cache-Control: no-cache</code>
46
+ */
47
+ readonly CACHE_CONTROL: "cache-control";
48
+ /**
49
+ * Control options for the current connection and list of hop-by-hop request fields. Permanent.
50
+ *
51
+ * @example
52
+ * <code>Connection: keep-alive</code>
53
+ * <code>Connection: Upgrade</code>
54
+ */
55
+ readonly CONNECTION: "connection";
56
+ /**
57
+ * An HTTP cookie previously sent by the server with Set-Cookie (below). Permanent: standard.
58
+ *
59
+ * @example
60
+ * <code>Cookie: $Version=1, Skin=new,</code>
61
+ */
62
+ readonly COOKIE: "cookie";
63
+ /**
64
+ * The length of the request body in octets (8-bit bytes). Permanent.
65
+ *
66
+ * @example
67
+ * <code>Content-Length: 348</code>
68
+ */
69
+ readonly CONTENT_LENGTH: "content-length";
70
+ /**
71
+ * A Base64-encoded binary MD5 sum of the content of the request body. Obsolete.
72
+ *
73
+ * @example
74
+ * <code>Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==</code>
75
+ */
76
+ readonly CONTENT_MD5: "content-md5";
77
+ /**
78
+ * The MIME type of the body of the request (used with POST and PUT requests). Permanent.
79
+ * <code>Content-Type: application/x-www-form-urlencoded</code>
80
+ */
81
+ readonly CONTENT_TYPE: "content-type";
82
+ /**
83
+ * The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats).
84
+ * Permanent.
85
+ *
86
+ * @example
87
+ * <code>Date: Tue, 15 Nov 1994 08:12:31 GMT</code>
88
+ */
89
+ readonly DATE: "date";
90
+ /**
91
+ * The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The
92
+ * port number may be omitted if the port is the standard port for the service requested. Permanent. Mandatory since
93
+ * HTTP/1.1.
94
+ *
95
+ * @example
96
+ * <code>Host: en.wikipedia.org:80</code>
97
+ * <code>Host: en.wikipedia.org</code>
98
+ */
99
+ readonly HOST: "host";
100
+ /**
101
+ * Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for
102
+ * methods like PUT to only update a resource if it has not been modified since the user last updated it. Permanent.
103
+ *
104
+ * @example
105
+ * <code>If-Match: "737060cd8c284d8af7ad3082f209582d"</code>
106
+ */
107
+ readonly IF_MATCH: "if-match";
108
+ /**
109
+ * Allows a 304 Not Modified to be returned if content is unchanged. Permanent.
110
+ *
111
+ * @example
112
+ * <code>If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>
113
+ */
114
+ readonly IF_MODIFIED_SINCE: "if-modified-since";
115
+ /**
116
+ * Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag. Permanent.
117
+ *
118
+ * @example
119
+ * <code>If-None-Match: "737060cd8c284d8af7ad3082f209582d"</code>
120
+ */
121
+ readonly IF_NONE_MATCH: "if-none-match";
122
+ /**
123
+ * If the entity is unchanged, send me the part(s) that I am missing, otherwise, send me the entire new entity.
124
+ * Permanent.
125
+ *
126
+ * @example
127
+ * <code>If-Range: "737060cd8c284d8af7ad3082f209582d"</code>
128
+ */
129
+ readonly IF_RANGE: "if-range";
130
+ /**
131
+ * Only send the response if the entity has not been modified since a specific time. Permanent.
132
+ *
133
+ * @example
134
+ * <code>If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT</code>
135
+ */
136
+ readonly IF_UNMODIFIED_SINCE: "if-unmodified-since";
137
+ /**
138
+ * Limit the number of times the message can be forwarded through proxies or gateways. Permanent.
139
+ *
140
+ * @example
141
+ * <code>Max-Forwards: 10</code>
142
+ */
143
+ readonly MAX_FORWARDS: "max-forwards";
144
+ /**
145
+ * Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response
146
+ * field). Permanent: standard.
147
+ *
148
+ * @example
149
+ * <code>Origin: http://www.example-social-network.com</code>
150
+ */
151
+ readonly ORIGIN: "origin";
152
+ /**
153
+ * Implementation-specific fields that may have various effects anywhere along the request-response chain. Permanent.
154
+ *
155
+ * @example
156
+ * <code>Pragma: no-cache</code>
157
+ */
158
+ readonly PRAGMA: "pragma";
159
+ /**
160
+ * Authorization credentials for connecting to a proxy. Permanent.
161
+ *
162
+ * @example
163
+ * <code>Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==</code>
164
+ */
165
+ readonly PROXY_AUTHORIZATION: "proxy-authorization";
166
+ /**
167
+ * Request only part of an entity. Bytes are numbered from 0. See Byte serving. Permanent.
168
+ *
169
+ * @example
170
+ * <code>Range: bytes=500-999</code>
171
+ */
172
+ readonly RANGE: "range";
173
+ /**
174
+ * This is the address of the previous web page from which a link to the currently requested page was followed. (The
175
+ * word "referrer" has been misspelled in the RFC as well as in most implementations to the point that it has become
176
+ * standard usage and is considered correct terminology). Permanent.
177
+ *
178
+ * @example
179
+ * <code>Referer: http://en.wikipedia.org/wiki/Main_Page</code>
180
+ */
181
+ readonly REFERER: "referer";
182
+ /**
183
+ * The transfer encodings the user agent is willing to accept: the same values as for the response header field
184
+ * Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the
185
+ * server it expects to receive additional fields in the trailer after the last, zero-sized, chunk. Permanent.
186
+ *
187
+ * @example
188
+ * <code>TE: trailers, deflate</code>
189
+ */
190
+ readonly TE: "te";
191
+ /**
192
+ * The user agent string of the user agent. Permanent.
193
+ *
194
+ * @example
195
+ * <code>User-Agent: Mozilla/5.0 (X11, Linux x86_64, rv:12.0) Gecko/20100101 Firefox/21.0</code>
196
+ */
197
+ readonly USER_AGENT: "user-agent";
198
+ /**
199
+ * Ask the server to upgrade to another protocol. Permanent.
200
+ *
201
+ * @example
202
+ * <code>Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11</code>
203
+ */
204
+ readonly UPGRADE: "upgrade";
205
+ /**
206
+ * A general warning about possible problems with the entity body. Permanent.
207
+ *
208
+ * @example
209
+ * <code>Warning: 199 Miscellaneous warning</code>
210
+ */
211
+ readonly WARNING: "warning";
212
+ /**
213
+ * mainly used to identify Ajax requests. Most JavaScript frameworks send this field with value of XMLHttpRequest.
214
+ *
215
+ * @example
216
+ * <code>X-Requested-With: XMLHttpRequest</code>
217
+ */
218
+ readonly X_REQUESTED_WITH: "x-requested-with";
219
+ /**
220
+ * A de facto standard for identifying the originating IP address of a client connecting to a web server through an
221
+ * HTTP proxy or load balancer.
222
+ *
223
+ * @example
224
+ * <code>X-Forwarded-For: client1, proxy1, proxy2</code>
225
+ * <code>X-Forwarded-For: 129.78.138.66, 129.78.64.103</code>
226
+ */
227
+ readonly X_FORWARDED_FOR: "x-forwarded-for";
228
+ /**
229
+ * A de facto standard for identifying the original host requested by the client in the Host HTTP request header, since
230
+ * the host name and/or port of the reverse proxy (load balancer) may differ from the origin server handling the
231
+ * request.
232
+ *
233
+ * @example
234
+ * <code>X-Forwarded-Host: en.wikipedia.org:80</code>
235
+ * <code>X-Forwarded-Host: en.wikipedia.org</code>
236
+ */
237
+ readonly X_FORWARDED_HOST: "x-forwarded-host";
238
+ /**
239
+ * A de facto standard for identifying the originating protocol of an HTTP request, since a reverse proxy (load
240
+ * balancer) may communicate with a web server using HTTP even if the request to the reverse proxy is HTTPS. An
241
+ * alternative form of the header (X-ProxyUser-Ip) is used by Google clients talking to Google servers.
242
+ *
243
+ * @example
244
+ * <code>X-Forwarded-Proto: https</code>
245
+ */
246
+ readonly X_FORWARDED_PROTO: "x-forwarded-proto";
247
+ };
248
+
249
+ export { HttpRequestHeader };
@@ -0,0 +1,2 @@
1
+ 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"};export{e as HttpRequestHeader};
2
+ //# sourceMappingURL=headers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/http-request-headers.ts"],
4
+ "sourcesContent": ["/**\n * Defining a constant object with all the HTTP request headers.\n */\nconst HttpRequestHeader = {\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 { HttpRequestHeader };\n// export type HttpRequestHeader = (typeof HttpRequestHeader)[keyof typeof HttpRequestHeader];"],
5
+ "mappings": "AAGA,IAAMA,EAAoB,CAOzB,OAAQ,SAOR,eAAgB,iBAOhB,gBAAiB,kBAOjB,gBAAiB,kBAOjB,cAAe,gBAQf,cAAe,gBAQf,WAAY,aAOZ,OAAQ,SAOR,eAAgB,iBAOhB,YAAa,cAKb,aAAc,eAQd,KAAM,OAUN,KAAM,OAQN,SAAU,WAOV,kBAAmB,oBAOnB,cAAe,gBAQf,SAAU,WAOV,oBAAqB,sBAOrB,aAAc,eAQd,OAAQ,SAOR,OAAQ,SAOR,oBAAqB,sBAOrB,MAAO,QASP,QAAS,UAST,GAAI,KAOJ,WAAY,aAOZ,QAAS,UAOT,QAAS,UAOT,iBAAkB,mBASlB,gBAAiB,kBAUjB,iBAAkB,mBASlB,kBAAmB,mBACpB",
6
+ "names": ["HttpRequestHeader"]
7
+ }
@@ -0,0 +1,160 @@
1
+ /**
2
+ * A collection of some of the available HTTP media types.
3
+ * @see {@link https://www.iana.org/assignments/media-types/media-types.xhtml | IANA Media Types}
4
+ */
5
+ declare const HttpMediaType: {
6
+ /** Advanced Audio Coding (AAC) */
7
+ readonly AAC: "audio/aac";
8
+ /** AbiWord */
9
+ readonly ABW: "application/x-abiword";
10
+ /** Archive document (multiple files embedded) */
11
+ readonly ARC: "application/x-freearc";
12
+ /** AVIF image */
13
+ readonly AVIF: "image/avif";
14
+ /** Audio Video Interleave (AVI) */
15
+ readonly AVI: "video/x-msvideo";
16
+ /** Amazon Kindle eBook format */
17
+ readonly AZW: "application/vnd.amazon.ebook";
18
+ /** Binary Data */
19
+ readonly BIN: "application/octet-stream";
20
+ /** Windows OS/2 Bitmap Graphics */
21
+ readonly BMP: "image/bmp";
22
+ /** Bzip Archive */
23
+ readonly BZIP: "application/x-bzip";
24
+ /** Bzip2 Archive */
25
+ readonly BZIP2: "application/x-bzip2";
26
+ /** CD audio */
27
+ readonly CDA: "application/x-cdf";
28
+ /** C Shell Script */
29
+ readonly CSH: "application/x-csh";
30
+ /** Cascading Style Sheets (CSS) */
31
+ readonly CSS: "text/css";
32
+ /** Comma-Separated Values */
33
+ readonly CSV: "text/csv";
34
+ /** Microsoft Office Word Document */
35
+ readonly DOC: "application/msword";
36
+ /** Microsoft Office Word Document (OpenXML) */
37
+ readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
38
+ /** Microsoft Embedded OpenType */
39
+ readonly EOT: "application/vnd.ms-fontobject";
40
+ /** Electronic Publication (EPUB) */
41
+ readonly EPUB: "application/epub+zip";
42
+ /** GZip Compressed Archive */
43
+ readonly GZIP: "application/gzip";
44
+ /** Graphics Interchange Format */
45
+ readonly GIF: "image/gif";
46
+ /** HyperText Markup Language (HTML) */
47
+ readonly HTML: "text/html";
48
+ /** Icon Format */
49
+ readonly ICO: "image/vnd.microsoft.icon";
50
+ /** iCalendar Format */
51
+ readonly ICS: "text/calendar";
52
+ /** Java Archive (JAR) */
53
+ readonly JAR: "application/java-archive";
54
+ /** JPEG Image */
55
+ readonly JPEG: "image/jpeg";
56
+ /** JavaScript */
57
+ readonly JAVA_SCRIPT: "text/javascript";
58
+ /** JavaScript Object Notation Format (JSON) */
59
+ readonly JSON: "application/json";
60
+ /** JavaScript Object Notation LD Format */
61
+ readonly JSON_LD: "application/ld+json";
62
+ /** JavaScript Object Notation (JSON) Merge Patch */
63
+ readonly JSON_MERGE_PATCH: "application/merge-patch+json";
64
+ /** Musical Instrument Digital Interface (MIDI) */
65
+ readonly MID: "audio/midi";
66
+ /** Musical Instrument Digital Interface (MIDI) */
67
+ readonly X_MID: "audio/x-midi";
68
+ /** MP3 Audio */
69
+ readonly MP3: "audio/mpeg";
70
+ /** MPEG-4 Audio */
71
+ readonly MP4A: "audio/mp4";
72
+ /** MPEG-4 Video */
73
+ readonly MP4: "video/mp4";
74
+ /** MPEG Video */
75
+ readonly MPEG: "video/mpeg";
76
+ /** Apple Installer Package */
77
+ readonly MPKG: "application/vnd.apple.installer+xml";
78
+ /** OpenDocument Presentation Document */
79
+ readonly ODP: "application/vnd.oasis.opendocument.presentation";
80
+ /** OpenDocument Spreadsheet Document */
81
+ readonly ODS: "application/vnd.oasis.opendocument.spreadsheet";
82
+ /** OpenDocument Text Document */
83
+ readonly ODT: "application/vnd.oasis.opendocument.text";
84
+ /** Ogg Audio */
85
+ readonly OGA: "audio/ogg";
86
+ /** Ogg Video */
87
+ readonly OGV: "video/ogg";
88
+ /** Ogg */
89
+ readonly OGX: "application/ogg";
90
+ /** Opus audio */
91
+ readonly OPUS: "audio/opus";
92
+ /** OpenType Font File */
93
+ readonly OTF: "font/otf";
94
+ /** Portable Network Graphics (PNG) */
95
+ readonly PNG: "image/png";
96
+ /** Adobe Portable Document Format */
97
+ readonly PDF: "application/pdf";
98
+ /** Hypertext Preprocessor (Personal Home Page) */
99
+ readonly PHP: "application/x-httpd-php";
100
+ /** Microsoft PowerPoint */
101
+ readonly PPT: "application/vnd.ms-powerpoint";
102
+ /** Microsoft Office Presentation (OpenXML) */
103
+ readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
104
+ /** RAR Archive */
105
+ readonly RAR: "application/vnd.rar";
106
+ /** Rich Text Format */
107
+ readonly RTF: "application/rtf";
108
+ /** Bourne Shell Script */
109
+ readonly SH: "application/x-sh";
110
+ /** Scalable Vector Graphics (SVG) */
111
+ readonly SVG: "image/svg+xml";
112
+ /** Tape Archive (TAR) */
113
+ readonly TAR: "application/x-tar";
114
+ /** Tagged Image File Format (TIFF) */
115
+ readonly TIFF: "image/tiff";
116
+ /** MPEG transport stream */
117
+ readonly TRANSPORT_STREAM: "video/mp2t";
118
+ /** TrueType Font */
119
+ readonly TTF: "font/ttf";
120
+ /** Text, (generally ASCII or ISO 8859-n) */
121
+ readonly TEXT: "text/plain";
122
+ /** Microsoft Visio */
123
+ readonly VSD: "application/vnd.visio";
124
+ /** Waveform Audio Format (WAV) */
125
+ readonly WAV: "audio/wav";
126
+ /** Open Web Media Project - Audio */
127
+ readonly WEBA: "audio/webm";
128
+ /** Open Web Media Project - Video */
129
+ readonly WEBM: "video/webm";
130
+ /** WebP Image */
131
+ readonly WEBP: "image/webp";
132
+ /** Web Open Font Format */
133
+ readonly WOFF: "font/woff";
134
+ /** Web Open Font Format */
135
+ readonly WOFF2: "font/woff2";
136
+ /** Form - Encoded */
137
+ readonly FORM: "application/x-www-form-urlencoded";
138
+ /** Multipart FormData */
139
+ readonly MULTIPART_FORM_DATA: "multipart/form-data";
140
+ /** XHTML - The Extensible HyperText Markup Language */
141
+ readonly XHTML: "application/xhtml+xml";
142
+ /** Microsoft Excel Document */
143
+ readonly XLS: "application/vnd.ms-excel";
144
+ /** Microsoft Office Spreadsheet Document (OpenXML) */
145
+ readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
146
+ /** Extensible Markup Language (XML) */
147
+ readonly XML: "application/xml";
148
+ /** XML User Interface Language (XUL) */
149
+ readonly XUL: "application/vnd.mozilla.xul+xml";
150
+ /** Zip Archive */
151
+ readonly ZIP: "application/zip";
152
+ /** 3GPP audio/video container */
153
+ readonly '3GP': "video/3gpp";
154
+ /** 3GPP2 audio/video container */
155
+ readonly '3G2': "video/3gpp2";
156
+ /** 7-Zip Archive */
157
+ readonly '7Z': "application/x-7z-compressed";
158
+ };
159
+
160
+ export { HttpMediaType };
@@ -0,0 +1,2 @@
1
+ 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"};export{i as HttpMediaType};
2
+ //# sourceMappingURL=media-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/http-media-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 HttpMediaType = {\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 { HttpMediaType };"],
5
+ "mappings": "AAIA,IAAMA,EAAgB,CAErB,IAAK,YAEL,IAAK,wBAEL,IAAK,wBAEL,KAAM,aAEN,IAAK,kBAEL,IAAK,+BAEL,IAAK,2BAEL,IAAK,YAEL,KAAM,qBAEN,MAAO,sBAEP,IAAK,oBAEL,IAAK,oBAEL,IAAK,WAEL,IAAK,WAEL,IAAK,qBAEL,KAAM,0EAEN,IAAK,gCAEL,KAAM,uBAEN,KAAM,mBAEN,IAAK,YAEL,KAAM,YAEN,IAAK,2BAEL,IAAK,gBAEL,IAAK,2BAEL,KAAM,aAEN,YAAa,kBAEb,KAAM,mBAEN,QAAS,sBAET,iBAAkB,+BAElB,IAAK,aAEL,MAAO,eAEP,IAAK,aAEL,KAAM,YAEN,IAAK,YAEL,KAAM,aAEN,KAAM,sCAEN,IAAK,kDAEL,IAAK,iDAEL,IAAK,0CAEL,IAAK,YAEL,IAAK,YAEL,IAAK,kBAEL,KAAM,aAEN,IAAK,WAEL,IAAK,YAEL,IAAK,kBAEL,IAAK,0BAEL,IAAK,gCAEL,KAAM,4EAEN,IAAK,sBAEL,IAAK,kBAEL,GAAI,mBAEJ,IAAK,gBAEL,IAAK,oBAEL,KAAM,aAEN,iBAAkB,aAElB,IAAK,WAEL,KAAM,aAEN,IAAK,wBAEL,IAAK,YAEL,KAAM,aAEN,KAAM,aAEN,KAAM,aAEN,KAAM,YAEN,MAAO,aAEP,KAAM,oCAEN,oBAAqB,sBAErB,MAAO,wBAEP,IAAK,2BAEL,KAAM,oEAEN,IAAK,kBAEL,IAAK,kCAEL,IAAK,kBAEL,MAAO,aAEP,MAAO,cAEP,KAAM,6BACP",
6
+ "names": ["HttpMediaType"]
7
+ }