@utiliread/http 1.19.5 → 1.20.0
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/dist/event-aggregator.d.ts +11 -0
- package/dist/events.d.ts +11 -0
- package/dist/header-names.d.ts +182 -0
- package/dist/helpers.d.ts +5 -0
- package/dist/http-builder.d.ts +61 -0
- package/dist/http-error.d.ts +10 -0
- package/dist/http-response.d.ts +18 -0
- package/dist/http.d.ts +33 -0
- package/dist/http.spec.d.ts +1 -0
- package/dist/index.d.ts +16 -231
- package/dist/index.js +616 -242
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -215
- package/dist/index.mjs.map +1 -1
- package/dist/mapper.d.ts +9 -0
- package/dist/pagination.d.ts +23 -0
- package/dist/{json.d.ts → plugins/json/index.d.ts} +1 -2
- package/dist/plugins/json/index.js +87 -0
- package/dist/plugins/json/index.js.map +1 -0
- package/dist/plugins/json/index.mjs +85 -0
- package/dist/plugins/json/index.mjs.map +1 -0
- package/dist/{jsonpatch.d.ts → plugins/jsonpatch/index.d.ts} +0 -2
- package/dist/plugins/jsonpatch/index.js +21 -0
- package/dist/plugins/jsonpatch/index.js.map +1 -0
- package/dist/plugins/jsonpatch/index.mjs +19 -0
- package/dist/plugins/jsonpatch/index.mjs.map +1 -0
- package/dist/{msgpack.d.ts → plugins/msgpack/index.d.ts} +1 -2
- package/dist/plugins/msgpack/index.js +41 -0
- package/dist/plugins/msgpack/index.js.map +1 -0
- package/dist/plugins/msgpack/index.mjs +39 -0
- package/dist/plugins/msgpack/index.mjs.map +1 -0
- package/dist/problem-details.d.ts +7 -0
- package/dist/query-string.d.ts +6 -0
- package/dist/query-string.spec.d.ts +1 -0
- package/dist/status-codes.d.ts +65 -0
- package/dist/timeout-error.d.ts +3 -0
- package/json.d.ts +2 -0
- package/json.rollup.config.mjs +32 -0
- package/jsonpatch.d.ts +2 -0
- package/jsonpatch.rollup.config.mjs +32 -0
- package/msgpack.d.ts +2 -0
- package/msgpack.rollup.config.mjs +37 -0
- package/package.json +24 -24
- package/rollup.config.mjs +31 -0
- package/src/header-names.ts +273 -0
- package/src/index.ts +2 -1
- package/{plugins/json/src → src/plugins/json}/index.ts +138 -142
- package/{plugins/jsonpatch/src → src/plugins/jsonpatch}/index.ts +36 -36
- package/{plugins/msgpack/src → src/plugins/msgpack}/index.ts +69 -66
- package/src/status-codes.ts +65 -67
- package/tsconfig.json +6 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/json.d.ts.map +0 -1
- package/dist/json.js +0 -93
- package/dist/json.js.map +0 -1
- package/dist/json.mjs +0 -82
- package/dist/json.mjs.map +0 -1
- package/dist/jsonpatch.d.ts.map +0 -1
- package/dist/jsonpatch.js +0 -33
- package/dist/jsonpatch.js.map +0 -1
- package/dist/jsonpatch.mjs +0 -22
- package/dist/jsonpatch.mjs.map +0 -1
- package/dist/msgpack.d.ts.map +0 -1
- package/dist/msgpack.js +0 -50
- package/dist/msgpack.js.map +0 -1
- package/dist/msgpack.mjs +0 -39
- package/dist/msgpack.mjs.map +0 -1
- package/plugins/json/node_modules/@utiliread/http/package.json +0 -4
- package/plugins/json/package.json +0 -15
- package/plugins/json/tsconfig.json +0 -7
- package/plugins/jsonpatch/node_modules/@utiliread/http/package.json +0 -4
- package/plugins/jsonpatch/package.json +0 -16
- package/plugins/jsonpatch/tsconfig.json +0 -7
- package/plugins/msgpack/node_modules/@utiliread/http/package.json +0 -4
- package/plugins/msgpack/package.json +0 -16
- package/plugins/msgpack/tsconfig.json +0 -7
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
|
2
|
+
|
|
3
|
+
/** @type {import('rollup').RollupOptions} */
|
|
4
|
+
const options = {
|
|
5
|
+
input: "src/plugins/json/index.ts",
|
|
6
|
+
external: ["@utiliread/http", "@utiliread/json", "luxon"],
|
|
7
|
+
treeshake: false,
|
|
8
|
+
plugins: [typescript({ declaration: false })],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default [
|
|
12
|
+
Object.assign(
|
|
13
|
+
{
|
|
14
|
+
output: {
|
|
15
|
+
file: "dist/plugins/json/index.mjs",
|
|
16
|
+
sourcemap: true,
|
|
17
|
+
format: "es",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
options,
|
|
21
|
+
),
|
|
22
|
+
Object.assign(
|
|
23
|
+
{
|
|
24
|
+
output: {
|
|
25
|
+
file: "dist/plugins/json/index.js",
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
format: "cjs",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
];
|
package/jsonpatch.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
|
2
|
+
|
|
3
|
+
/** @type {import('rollup').RollupOptions} */
|
|
4
|
+
const options = {
|
|
5
|
+
input: "src/plugins/jsonpatch/index.ts",
|
|
6
|
+
external: ["@utiliread/http", "@utiliread/json", "luxon"],
|
|
7
|
+
treeshake: false,
|
|
8
|
+
plugins: [typescript({ declaration: false })],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default [
|
|
12
|
+
Object.assign(
|
|
13
|
+
{
|
|
14
|
+
output: {
|
|
15
|
+
file: "dist/plugins/jsonpatch/index.mjs",
|
|
16
|
+
sourcemap: true,
|
|
17
|
+
format: "es",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
options,
|
|
21
|
+
),
|
|
22
|
+
Object.assign(
|
|
23
|
+
{
|
|
24
|
+
output: {
|
|
25
|
+
file: "dist/plugins/jsonpatch/index.js",
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
format: "cjs",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
];
|
package/msgpack.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
|
2
|
+
|
|
3
|
+
/** @type {import('rollup').RollupOptions} */
|
|
4
|
+
const options = {
|
|
5
|
+
input: "src/plugins/msgpack/index.ts",
|
|
6
|
+
external: [
|
|
7
|
+
"@msgpack/msgpack",
|
|
8
|
+
"@utiliread/http",
|
|
9
|
+
"@utiliread/msgpack",
|
|
10
|
+
"luxon",
|
|
11
|
+
],
|
|
12
|
+
treeshake: false,
|
|
13
|
+
plugins: [typescript({ declaration: false })],
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default [
|
|
17
|
+
Object.assign(
|
|
18
|
+
{
|
|
19
|
+
output: {
|
|
20
|
+
file: "dist/plugins/msgpack/index.mjs",
|
|
21
|
+
sourcemap: true,
|
|
22
|
+
format: "es",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
options
|
|
26
|
+
),
|
|
27
|
+
Object.assign(
|
|
28
|
+
{
|
|
29
|
+
output: {
|
|
30
|
+
file: "dist/plugins/msgpack/index.js",
|
|
31
|
+
sourcemap: true,
|
|
32
|
+
format: "cjs",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
options
|
|
36
|
+
),
|
|
37
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utiliread/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,42 +12,41 @@
|
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"./json": {
|
|
15
|
-
"types": "./dist/json.d.ts",
|
|
16
|
-
"import": "./dist/json.mjs",
|
|
17
|
-
"require": "./dist/json.js"
|
|
15
|
+
"types": "./dist/plugins/json/index.d.ts",
|
|
16
|
+
"import": "./dist/plugins/json/index.mjs",
|
|
17
|
+
"require": "./dist/plugins/json/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./jsonpatch": {
|
|
20
|
-
"types": "./dist/jsonpatch.d.ts",
|
|
21
|
-
"import": "./dist/jsonpatch.mjs",
|
|
22
|
-
"require": "./dist/jsonpatch.js"
|
|
20
|
+
"types": "./dist/plugins/jsonpatch/index.d.ts",
|
|
21
|
+
"import": "./dist/plugins/jsonpatch/index.mjs",
|
|
22
|
+
"require": "./dist/plugins/jsonpatch/index.js"
|
|
23
23
|
},
|
|
24
24
|
"./msgpack": {
|
|
25
|
-
"types": "./dist/msgpack.d.ts",
|
|
26
|
-
"import": "./dist/msgpack.mjs",
|
|
27
|
-
"require": "./dist/msgpack.js"
|
|
25
|
+
"types": "./dist/plugins/msgpack/index.d.ts",
|
|
26
|
+
"import": "./dist/plugins/msgpack/index.mjs",
|
|
27
|
+
"require": "./dist/plugins/msgpack/index.js"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": [
|
|
31
|
-
"./dist/json.
|
|
32
|
-
"./dist/jsonpatch.
|
|
33
|
-
"./dist/msgpack.
|
|
31
|
+
"./dist/plugins/json/index.{mjs,js}",
|
|
32
|
+
"./dist/plugins/jsonpatch/index.{mjs,js}",
|
|
33
|
+
"./dist/plugins/msgpack/index.{mjs,js}"
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
|
-
"build": "
|
|
37
|
-
"build:
|
|
38
|
-
"build:json": "
|
|
39
|
-
"build:jsonpatch": "
|
|
40
|
-
"build:msgpack": "
|
|
41
|
-
"prettier": "prettier --write *.mjs src/**/*.ts
|
|
36
|
+
"build": "rollup -c && npm run build:json && npm run build:jsonpatch && npm run build:msgpack",
|
|
37
|
+
"build:core": "rollup -c",
|
|
38
|
+
"build:json": "rollup -c json.rollup.config.mjs",
|
|
39
|
+
"build:jsonpatch": "rollup -c jsonpatch.rollup.config.mjs",
|
|
40
|
+
"build:msgpack": "rollup -c msgpack.rollup.config.mjs",
|
|
41
|
+
"prettier": "prettier --write *.mjs src/**/*.ts",
|
|
42
42
|
"test": "web-test-runner",
|
|
43
|
-
"clean": "rimraf
|
|
43
|
+
"clean": "rimraf dist"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@parcel/transformer-typescript-types": "^2.12.0",
|
|
49
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
51
50
|
"@types/chai": "^4.3.11",
|
|
52
51
|
"@types/luxon": "^3.0.1",
|
|
53
52
|
"@types/mocha": "^10.0.0",
|
|
@@ -59,10 +58,11 @@
|
|
|
59
58
|
"chai": "^5.0.0",
|
|
60
59
|
"luxon": "^3.0.4",
|
|
61
60
|
"mocha": "^10.0.0",
|
|
62
|
-
"parcel": "^2.12.0",
|
|
63
61
|
"prettier": "^3.2.4",
|
|
64
62
|
"rimraf": "^6.0.1",
|
|
65
|
-
"
|
|
63
|
+
"rollup": "^4.21.3",
|
|
64
|
+
"tslib": "^2.7.0",
|
|
65
|
+
"typescript": "^5.6.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@utiliread/json": "^1.3.0",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
|
2
|
+
|
|
3
|
+
/** @type {import('rollup').RollupOptions} */
|
|
4
|
+
const options = {
|
|
5
|
+
input: "src/index.ts",
|
|
6
|
+
external: ["luxon"],
|
|
7
|
+
plugins: [typescript()],
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
Object.assign(
|
|
12
|
+
{
|
|
13
|
+
output: {
|
|
14
|
+
file: "dist/index.mjs",
|
|
15
|
+
sourcemap: true,
|
|
16
|
+
format: "es",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
options,
|
|
20
|
+
),
|
|
21
|
+
Object.assign(
|
|
22
|
+
{
|
|
23
|
+
output: {
|
|
24
|
+
file: "dist/index.js",
|
|
25
|
+
sourcemap: true,
|
|
26
|
+
format: "cjs",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
options,
|
|
30
|
+
),
|
|
31
|
+
];
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/** Gets the `Accept` HTTP header name. */
|
|
2
|
+
export const accept = "Accept";
|
|
3
|
+
|
|
4
|
+
/** Gets the `Accept-Charset` HTTP header name. */
|
|
5
|
+
export const acceptCharset = "Accept-Charset";
|
|
6
|
+
|
|
7
|
+
/** Gets the `Accept-Encoding` HTTP header name. */
|
|
8
|
+
export const acceptEncoding = "Accept-Encoding";
|
|
9
|
+
|
|
10
|
+
/** Gets the `Accept-Language` HTTP header name. */
|
|
11
|
+
export const acceptLanguage = "Accept-Language";
|
|
12
|
+
|
|
13
|
+
/** Gets the `Accept-Ranges` HTTP header name. */
|
|
14
|
+
export const acceptRanges = "Accept-Ranges";
|
|
15
|
+
|
|
16
|
+
/** Gets the `Access-Control-Allow-Credentials` HTTP header name. */
|
|
17
|
+
export const accessControlAllowCredentials = "Access-Control-Allow-Credentials";
|
|
18
|
+
|
|
19
|
+
/** Gets the `Access-Control-Allow-Headers` HTTP header name. */
|
|
20
|
+
export const accessControlAllowHeaders = "Access-Control-Allow-Headers";
|
|
21
|
+
|
|
22
|
+
/** Gets the `Access-Control-Allow-Methods` HTTP header name. */
|
|
23
|
+
export const accessControlAllowMethods = "Access-Control-Allow-Methods";
|
|
24
|
+
|
|
25
|
+
/** Gets the `Access-Control-Allow-Origin` HTTP header name. */
|
|
26
|
+
export const accessControlAllowOrigin = "Access-Control-Allow-Origin";
|
|
27
|
+
|
|
28
|
+
/** Gets the `Access-Control-Expose-Headers` HTTP header name. */
|
|
29
|
+
export const accessControlExposeHeaders = "Access-Control-Expose-Headers";
|
|
30
|
+
|
|
31
|
+
/** Gets the `Access-Control-Max-Age` HTTP header name. */
|
|
32
|
+
export const accessControlMaxAge = "Access-Control-Max-Age";
|
|
33
|
+
|
|
34
|
+
/** Gets the `Access-Control-Request-Headers` HTTP header name. */
|
|
35
|
+
export const accessControlRequestHeaders = "Access-Control-Request-Headers";
|
|
36
|
+
|
|
37
|
+
/** Gets the `Access-Control-Request-Method` HTTP header name. */
|
|
38
|
+
export const accessControlRequestMethod = "Access-Control-Request-Method";
|
|
39
|
+
|
|
40
|
+
/** Gets the `Age` HTTP header name. */
|
|
41
|
+
export const age = "Age";
|
|
42
|
+
|
|
43
|
+
/** Gets the `Allow` HTTP header name. */
|
|
44
|
+
export const allow = "Allow";
|
|
45
|
+
|
|
46
|
+
/** Gets the `Alt-Svc` HTTP header name. */
|
|
47
|
+
export const altSvc = "Alt-Svc";
|
|
48
|
+
|
|
49
|
+
/** Gets the `Authorization` HTTP header name. */
|
|
50
|
+
export const authorization = "Authorization";
|
|
51
|
+
|
|
52
|
+
/** Gets the `baggage` HTTP header name. */
|
|
53
|
+
export const baggage = "baggage";
|
|
54
|
+
|
|
55
|
+
/** Gets the `Cache-Control` HTTP header name. */
|
|
56
|
+
export const cacheControl = "Cache-Control";
|
|
57
|
+
|
|
58
|
+
/** Gets the `Connection` HTTP header name. */
|
|
59
|
+
export const connection = "Connection";
|
|
60
|
+
|
|
61
|
+
/** Gets the `Content-Disposition` HTTP header name. */
|
|
62
|
+
export const contentDisposition = "Content-Disposition";
|
|
63
|
+
|
|
64
|
+
/** Gets the `Content-Encoding` HTTP header name. */
|
|
65
|
+
export const contentEncoding = "Content-Encoding";
|
|
66
|
+
|
|
67
|
+
/** Gets the `Content-Language` HTTP header name. */
|
|
68
|
+
export const contentLanguage = "Content-Language";
|
|
69
|
+
|
|
70
|
+
/** Gets the `Content-Length` HTTP header name. */
|
|
71
|
+
export const contentLength = "Content-Length";
|
|
72
|
+
|
|
73
|
+
/** Gets the `Content-Location` HTTP header name. */
|
|
74
|
+
export const contentLocation = "Content-Location";
|
|
75
|
+
|
|
76
|
+
/** Gets the `Content-MD5` HTTP header name. */
|
|
77
|
+
export const contentMD5 = "Content-MD5";
|
|
78
|
+
|
|
79
|
+
/** Gets the `Content-Range` HTTP header name. */
|
|
80
|
+
export const contentRange = "Content-Range";
|
|
81
|
+
|
|
82
|
+
/** Gets the `Content-Security-Policy` HTTP header name. */
|
|
83
|
+
export const contentSecurityPolicy = "Content-Security-Policy";
|
|
84
|
+
|
|
85
|
+
/** Gets the `Content-Security-Policy-Report-Only` HTTP header name. */
|
|
86
|
+
export const contentSecurityPolicyReportOnly =
|
|
87
|
+
"Content-Security-Policy-Report-Only";
|
|
88
|
+
|
|
89
|
+
/** Gets the `Content-Type` HTTP header name. */
|
|
90
|
+
export const contentType = "Content-Type";
|
|
91
|
+
|
|
92
|
+
/** Gets the `Correlation-Context` HTTP header name. */
|
|
93
|
+
export const correlationContext = "Correlation-Context";
|
|
94
|
+
|
|
95
|
+
/** Gets the `Cookie` HTTP header name. */
|
|
96
|
+
export const cookie = "Cookie";
|
|
97
|
+
|
|
98
|
+
/** Gets the `Date` HTTP header name. */
|
|
99
|
+
export const date = "Date";
|
|
100
|
+
|
|
101
|
+
/** Gets the `DNT` HTTP header name. */
|
|
102
|
+
export const dnt = "DNT";
|
|
103
|
+
|
|
104
|
+
/** Gets the `ETag` HTTP header name. */
|
|
105
|
+
export const eTag = "ETag";
|
|
106
|
+
|
|
107
|
+
/** Gets the `Expires` HTTP header name. */
|
|
108
|
+
export const expires = "Expires";
|
|
109
|
+
|
|
110
|
+
/** Gets the `Expect` HTTP header name. */
|
|
111
|
+
export const expect = "Expect";
|
|
112
|
+
|
|
113
|
+
/** Gets the `From` HTTP header name. */
|
|
114
|
+
export const from = "From";
|
|
115
|
+
|
|
116
|
+
/** Gets the `Grpc-Accept-Encoding` HTTP header name. */
|
|
117
|
+
export const grpcAcceptEncoding = "Grpc-Accept-Encoding";
|
|
118
|
+
|
|
119
|
+
/** Gets the `Grpc-Encoding` HTTP header name. */
|
|
120
|
+
export const grpcEncoding = "Grpc-Encoding";
|
|
121
|
+
|
|
122
|
+
/** Gets the `Grpc-Message` HTTP header name. */
|
|
123
|
+
export const grpcMessage = "Grpc-Message";
|
|
124
|
+
|
|
125
|
+
/** Gets the `Grpc-Status` HTTP header name. */
|
|
126
|
+
export const grpcStatus = "Grpc-Status";
|
|
127
|
+
|
|
128
|
+
/** Gets the `Grpc-Timeout` HTTP header name. */
|
|
129
|
+
export const grpcTimeout = "Grpc-Timeout";
|
|
130
|
+
|
|
131
|
+
/** Gets the `Host` HTTP header name. */
|
|
132
|
+
export const host = "Host";
|
|
133
|
+
|
|
134
|
+
/** Gets the `Keep-Alive` HTTP header name. */
|
|
135
|
+
export const keepAlive = "Keep-Alive";
|
|
136
|
+
|
|
137
|
+
/** Gets the `If-Match` HTTP header name. */
|
|
138
|
+
export const ifMatch = "If-Match";
|
|
139
|
+
|
|
140
|
+
/** Gets the `If-Modified-Since` HTTP header name. */
|
|
141
|
+
export const ifModifiedSince = "If-Modified-Since";
|
|
142
|
+
|
|
143
|
+
/** Gets the `If-None-Match` HTTP header name. */
|
|
144
|
+
export const ifNoneMatch = "If-None-Match";
|
|
145
|
+
|
|
146
|
+
/** Gets the `If-Range` HTTP header name. */
|
|
147
|
+
export const ifRange = "If-Range";
|
|
148
|
+
|
|
149
|
+
/** Gets the `If-Unmodified-Since` HTTP header name. */
|
|
150
|
+
export const ifUnmodifiedSince = "If-Unmodified-Since";
|
|
151
|
+
|
|
152
|
+
/** Gets the `Last-Modified` HTTP header name. */
|
|
153
|
+
export const lastModified = "Last-Modified";
|
|
154
|
+
|
|
155
|
+
/** Gets the `Link` HTTP header name. */
|
|
156
|
+
export const link = "Link";
|
|
157
|
+
|
|
158
|
+
/** Gets the `Location` HTTP header name. */
|
|
159
|
+
export const location = "Location";
|
|
160
|
+
|
|
161
|
+
/** Gets the `Max-Forwards` HTTP header name. */
|
|
162
|
+
export const maxForwards = "Max-Forwards";
|
|
163
|
+
|
|
164
|
+
/** Gets the `Origin` HTTP header name. */
|
|
165
|
+
export const origin = "Origin";
|
|
166
|
+
|
|
167
|
+
/** Gets the `Pragma` HTTP header name. */
|
|
168
|
+
export const pragma = "Pragma";
|
|
169
|
+
|
|
170
|
+
/** Gets the `Proxy-Authenticate` HTTP header name. */
|
|
171
|
+
export const proxyAuthenticate = "Proxy-Authenticate";
|
|
172
|
+
|
|
173
|
+
/** Gets the `Proxy-Authorization` HTTP header name. */
|
|
174
|
+
export const proxyAuthorization = "Proxy-Authorization";
|
|
175
|
+
|
|
176
|
+
/** Gets the `Proxy-Connection` HTTP header name. */
|
|
177
|
+
export const proxyConnection = "Proxy-Connection";
|
|
178
|
+
|
|
179
|
+
/** Gets the `Range` HTTP header name. */
|
|
180
|
+
export const range = "Range";
|
|
181
|
+
|
|
182
|
+
/** Gets the `Referer` HTTP header name. */
|
|
183
|
+
export const referer = "Referer";
|
|
184
|
+
|
|
185
|
+
/** Gets the `Retry-After` HTTP header name. */
|
|
186
|
+
export const retryAfter = "Retry-After";
|
|
187
|
+
|
|
188
|
+
/** Gets the `Request-Id` HTTP header name. */
|
|
189
|
+
export const requestId = "Request-Id";
|
|
190
|
+
|
|
191
|
+
/** Gets the `Sec-WebSocket-Accept` HTTP header name. */
|
|
192
|
+
export const secWebSocketAccept = "Sec-WebSocket-Accept";
|
|
193
|
+
|
|
194
|
+
/** Gets the `Sec-WebSocket-Key` HTTP header name. */
|
|
195
|
+
export const secWebSocketKey = "Sec-WebSocket-Key";
|
|
196
|
+
|
|
197
|
+
/** Gets the `Sec-WebSocket-Protocol` HTTP header name. */
|
|
198
|
+
export const secWebSocketProtocol = "Sec-WebSocket-Protocol";
|
|
199
|
+
|
|
200
|
+
/** Gets the `Sec-WebSocket-Version` HTTP header name. */
|
|
201
|
+
export const secWebSocketVersion = "Sec-WebSocket-Version";
|
|
202
|
+
|
|
203
|
+
/** Gets the `Sec-WebSocket-Extensions` HTTP header name. */
|
|
204
|
+
export const secWebSocketExtensions = "Sec-WebSocket-Extensions";
|
|
205
|
+
|
|
206
|
+
/** Gets the `Server` HTTP header name. */
|
|
207
|
+
export const server = "Server";
|
|
208
|
+
|
|
209
|
+
/** Gets the `Set-Cookie` HTTP header name. */
|
|
210
|
+
export const setCookie = "Set-Cookie";
|
|
211
|
+
|
|
212
|
+
/** Gets the `Strict-Transport-Security` HTTP header name. */
|
|
213
|
+
export const strictTransportSecurity = "Strict-Transport-Security";
|
|
214
|
+
|
|
215
|
+
/** Gets the `TE` HTTP header name. */
|
|
216
|
+
export const te = "TE";
|
|
217
|
+
|
|
218
|
+
/** Gets the `Trailer` HTTP header name. */
|
|
219
|
+
export const trailer = "Trailer";
|
|
220
|
+
|
|
221
|
+
/** Gets the `Transfer-Encoding` HTTP header name. */
|
|
222
|
+
export const transferEncoding = "Transfer-Encoding";
|
|
223
|
+
|
|
224
|
+
/** Gets the `Translate` HTTP header name. */
|
|
225
|
+
export const translate = "Translate";
|
|
226
|
+
|
|
227
|
+
/** Gets the `traceparent` HTTP header name. */
|
|
228
|
+
export const traceParent = "traceparent";
|
|
229
|
+
|
|
230
|
+
/** Gets the `tracestate` HTTP header name. */
|
|
231
|
+
export const traceState = "tracestate";
|
|
232
|
+
|
|
233
|
+
/** Gets the `Upgrade` HTTP header name. */
|
|
234
|
+
export const upgrade = "Upgrade";
|
|
235
|
+
|
|
236
|
+
/** Gets the `Upgrade-Insecure-Requests` HTTP header name. */
|
|
237
|
+
export const upgradeInsecureRequests = "Upgrade-Insecure-Requests";
|
|
238
|
+
|
|
239
|
+
/** Gets the `User-Agent` HTTP header name. */
|
|
240
|
+
export const userAgent = "User-Agent";
|
|
241
|
+
|
|
242
|
+
/** Gets the `Vary` HTTP header name. */
|
|
243
|
+
export const vary = "Vary";
|
|
244
|
+
|
|
245
|
+
/** Gets the `Via` HTTP header name. */
|
|
246
|
+
export const via = "Via";
|
|
247
|
+
|
|
248
|
+
/** Gets the `Warning` HTTP header name. */
|
|
249
|
+
export const warning = "Warning";
|
|
250
|
+
|
|
251
|
+
/** Gets the `Sec-WebSocket-Protocol` HTTP header name. */
|
|
252
|
+
export const webSocketSubProtocols = "Sec-WebSocket-Protocol";
|
|
253
|
+
|
|
254
|
+
/** Gets the `WWW-Authenticate` HTTP header name. */
|
|
255
|
+
export const wWWAuthenticate = "WWW-Authenticate";
|
|
256
|
+
|
|
257
|
+
/** Gets the `X-Content-Type-Options` HTTP header name. */
|
|
258
|
+
export const xContentTypeOptions = "X-Content-Type-Options";
|
|
259
|
+
|
|
260
|
+
/** Gets the `X-Frame-Options` HTTP header name. */
|
|
261
|
+
export const xFrameOptions = "X-Frame-Options";
|
|
262
|
+
|
|
263
|
+
/** Gets the `X-Powered-By` HTTP header name. */
|
|
264
|
+
export const xPoweredBy = "X-Powered-By";
|
|
265
|
+
|
|
266
|
+
/** Gets the `X-Requested-With` HTTP header name. */
|
|
267
|
+
export const xRequestedWith = "X-Requested-With";
|
|
268
|
+
|
|
269
|
+
/** Gets the `X-UA-Compatible` HTTP header name. */
|
|
270
|
+
export const xUACompatible = "X-UA-Compatible";
|
|
271
|
+
|
|
272
|
+
/** Gets the `X-XSS-Protection` HTTP header name. */
|
|
273
|
+
export const xXSSProtection = "X-XSS-Protection";
|
package/src/index.ts
CHANGED
|
@@ -16,5 +16,6 @@ export { events } from "./events";
|
|
|
16
16
|
export * from "./helpers";
|
|
17
17
|
export type { Fetch } from "./http";
|
|
18
18
|
export type { Subscription } from "./event-aggregator";
|
|
19
|
-
export
|
|
19
|
+
export * as headerNames from "./header-names";
|
|
20
|
+
export * as statusCodes from "./status-codes";
|
|
20
21
|
export * from "./mapper";
|