@celljs/http 3.8.0 → 3.9.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/esm/common/client/client-protocol.d.ts +18 -0
- package/esm/common/client/client-protocol.js +26 -0
- package/esm/common/client/client-protocol.js.map +1 -0
- package/esm/common/client/index.d.ts +2 -0
- package/esm/common/client/index.js +3 -0
- package/esm/common/client/index.js.map +1 -0
- package/esm/common/client/rest-operations-factory.d.ts +6 -0
- package/esm/common/client/rest-operations-factory.js +26 -0
- package/esm/common/client/rest-operations-factory.js.map +1 -0
- package/esm/common/http/http-headers.d.ts +306 -0
- package/esm/common/http/http-headers.js +307 -0
- package/esm/common/http/http-headers.js.map +1 -0
- package/esm/common/http/http-protocol.d.ts +155 -0
- package/esm/common/http/http-protocol.js +163 -0
- package/esm/common/http/http-protocol.js.map +1 -0
- package/esm/common/http/index.d.ts +2 -0
- package/esm/common/http/index.js +3 -0
- package/esm/common/http/index.js.map +1 -0
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.js +3 -0
- package/esm/common/index.js.map +1 -0
- package/esm/common/module.d.ts +2 -0
- package/esm/common/module.js +9 -0
- package/esm/common/module.js.map +1 -0
- package/esm/package.json +3 -0
- package/package.json +39 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosResponseHeaders } from 'axios';
|
|
2
|
+
export declare const RestOperations: unique symbol;
|
|
3
|
+
export declare const RestOperationsFactory: unique symbol;
|
|
4
|
+
export interface RestOperations extends AxiosInstance {
|
|
5
|
+
}
|
|
6
|
+
export interface RestOperationsFactory {
|
|
7
|
+
create(): RestOperations;
|
|
8
|
+
}
|
|
9
|
+
export interface ResponseEntity<T> {
|
|
10
|
+
status: number;
|
|
11
|
+
headers: AxiosResponseHeaders;
|
|
12
|
+
body: T;
|
|
13
|
+
}
|
|
14
|
+
export declare class ResponseEntityUtil {
|
|
15
|
+
static ok<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T>;
|
|
16
|
+
static created<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T>;
|
|
17
|
+
static noContent(): ResponseEntity<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const RestOperations = Symbol('RestOperations');
|
|
2
|
+
export const RestOperationsFactory = Symbol('RestOperationsFactory');
|
|
3
|
+
export class ResponseEntityUtil {
|
|
4
|
+
static ok(body, headers) {
|
|
5
|
+
return {
|
|
6
|
+
status: 200,
|
|
7
|
+
headers: headers || {},
|
|
8
|
+
body
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
static created(body, headers) {
|
|
12
|
+
return {
|
|
13
|
+
status: 201,
|
|
14
|
+
headers: headers || {},
|
|
15
|
+
body
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static noContent() {
|
|
19
|
+
return {
|
|
20
|
+
status: 204,
|
|
21
|
+
headers: {},
|
|
22
|
+
body: undefined
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=client-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-protocol.js","sourceRoot":"","sources":["../../../src/common/client/client-protocol.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAgBrE,MAAM,OAAO,kBAAkB;IAC3B,MAAM,CAAC,EAAE,CAAI,IAAO,EAAE,OAA+B;QACjD,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,IAAI;SACP,CAAC;IACN,CAAC;IAED,MAAM,CAAC,OAAO,CAAI,IAAO,EAAE,OAA8B;QACrD,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,IAAI;SACP,CAAC;IACN,CAAC;IAED,MAAM,CAAC,SAAS;QACZ,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,SAAS;SAClB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RestOperationsFactory, RestOperations } from './client-protocol.js';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
|
+
export declare class DefaultRestOperationsFactory implements RestOperationsFactory {
|
|
4
|
+
protected readonly clientConfig: AxiosRequestConfig;
|
|
5
|
+
create(): RestOperations;
|
|
6
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { RestOperationsFactory } from './client-protocol.js';
|
|
11
|
+
import axios from 'axios';
|
|
12
|
+
import { Component, Value } from '@celljs/core';
|
|
13
|
+
let DefaultRestOperationsFactory = class DefaultRestOperationsFactory {
|
|
14
|
+
create() {
|
|
15
|
+
return axios.create(this.clientConfig);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Value('cell.client.config'),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], DefaultRestOperationsFactory.prototype, "clientConfig", void 0);
|
|
22
|
+
DefaultRestOperationsFactory = __decorate([
|
|
23
|
+
Component(RestOperationsFactory)
|
|
24
|
+
], DefaultRestOperationsFactory);
|
|
25
|
+
export { DefaultRestOperationsFactory };
|
|
26
|
+
//# sourceMappingURL=rest-operations-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-operations-factory.js","sourceRoot":"","sources":["../../../src/common/client/rest-operations-factory.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAkB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGzC,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAKrC,MAAM;QACF,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;CAEJ,CAAA;AANsB;IADlB,KAAK,CAAC,oBAAoB,CAAC;;kEACwB;AAH3C,4BAA4B;IADxC,SAAS,CAAC,qBAAqB,CAAC;GACpB,4BAA4B,CASxC"}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export declare class HttpHeaders {
|
|
2
|
+
/**
|
|
3
|
+
* The HTTP `Accept` header field name.
|
|
4
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.2 Section 5.3.2 of RFC 7231}
|
|
5
|
+
*/
|
|
6
|
+
static ACCEPT: string;
|
|
7
|
+
/**
|
|
8
|
+
* The HTTP `Accept-Charset` header field name.
|
|
9
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.3 Section 5.3.3 of RFC 7231}
|
|
10
|
+
*/
|
|
11
|
+
static ACCEPT_CHARSET: string;
|
|
12
|
+
/**
|
|
13
|
+
* The HTTP `Accept-Encoding` header field name.
|
|
14
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.4 Section 5.3.4 of RFC 7231}
|
|
15
|
+
*/
|
|
16
|
+
static ACCEPT_ENCODING: string;
|
|
17
|
+
/**
|
|
18
|
+
* The HTTP `Accept-Language` header field name.
|
|
19
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.5 Section 5.3.5 of RFC 7231}
|
|
20
|
+
*/
|
|
21
|
+
static ACCEPT_LANGUAGE: string;
|
|
22
|
+
/**
|
|
23
|
+
* The HTTP `Accept-Ranges` header field name.
|
|
24
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-2.3 Section 5.3.5 of RFC 7233}
|
|
25
|
+
*/
|
|
26
|
+
static ACCEPT_RANGES: string;
|
|
27
|
+
/**
|
|
28
|
+
* The CORS `Access-Control-Allow-Credentials` response header field name.
|
|
29
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
30
|
+
*/
|
|
31
|
+
static ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
|
|
32
|
+
/**
|
|
33
|
+
* The CORS `Access-Control-Allow-Headers` response header field name.
|
|
34
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
35
|
+
*/
|
|
36
|
+
static ACCESS_CONTROL_ALLOW_HEADERS: string;
|
|
37
|
+
/**
|
|
38
|
+
* The CORS `Access-Control-Allow-Methods` response header field name.
|
|
39
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
40
|
+
*/
|
|
41
|
+
static ACCESS_CONTROL_ALLOW_METHODS: string;
|
|
42
|
+
/**
|
|
43
|
+
* The CORS `Access-Control-Allow-Origin` response header field name.
|
|
44
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
45
|
+
*/
|
|
46
|
+
static ACCESS_CONTROL_ALLOW_ORIGIN: string;
|
|
47
|
+
/**
|
|
48
|
+
* The CORS `Access-Control-Expose-Headers` response header field name.
|
|
49
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
50
|
+
*/
|
|
51
|
+
static ACCESS_CONTROL_EXPOSE_HEADERS: string;
|
|
52
|
+
/**
|
|
53
|
+
* The CORS `Access-Control-Max-Age` response header field name.
|
|
54
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
55
|
+
*/
|
|
56
|
+
static ACCESS_CONTROL_MAX_AGE: string;
|
|
57
|
+
/**
|
|
58
|
+
* The CORS `Access-Control-Request-Headers` request header field name.
|
|
59
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
60
|
+
*/
|
|
61
|
+
static ACCESS_CONTROL_REQUEST_HEADERS: string;
|
|
62
|
+
/**
|
|
63
|
+
* The CORS `Access-Control-Request-Method` request header field name.
|
|
64
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
65
|
+
*/
|
|
66
|
+
static ACCESS_CONTROL_REQUEST_METHOD: string;
|
|
67
|
+
/**
|
|
68
|
+
* The HTTP `Age` header field name.
|
|
69
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.1 Section 5.1 of RFC 7234}
|
|
70
|
+
*/
|
|
71
|
+
static AGE: string;
|
|
72
|
+
/**
|
|
73
|
+
* The HTTP `Allow` header field name.
|
|
74
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.1 Section 7.4.1 of RFC 7231}
|
|
75
|
+
*/
|
|
76
|
+
static ALLOW: string;
|
|
77
|
+
/**
|
|
78
|
+
* The HTTP `Authorization` header field name.
|
|
79
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.2 Section 4.2 of RFC 7235}
|
|
80
|
+
*/
|
|
81
|
+
static AUTHORIZATION: string;
|
|
82
|
+
/**
|
|
83
|
+
* The HTTP `Cache-Control` header field name.
|
|
84
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.2 Section 5.2 of RFC 7234}
|
|
85
|
+
*/
|
|
86
|
+
static CACHE_CONTROL: string;
|
|
87
|
+
/**
|
|
88
|
+
* The HTTP `Connection` header field name.
|
|
89
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.1 Section 6.1 of RFC 7230}
|
|
90
|
+
*/
|
|
91
|
+
static CONNECTION: string;
|
|
92
|
+
/**
|
|
93
|
+
* The HTTP `Content-Encoding` header field name.
|
|
94
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.2.2 Section 3.1.2.2 of RFC 7231}
|
|
95
|
+
*/
|
|
96
|
+
static CONTENT_ENCODING: string;
|
|
97
|
+
/**
|
|
98
|
+
* The HTTP `Content-Disposition` header field name.
|
|
99
|
+
* @see {@link https://tools.ietf.org/html/rfc6266 RFC 6266}
|
|
100
|
+
*/
|
|
101
|
+
static CONTENT_DISPOSITION: string;
|
|
102
|
+
/**
|
|
103
|
+
* The HTTP `Content-Language` header field name.
|
|
104
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.3.2 Section 3.1.3.2 of RFC 7231}
|
|
105
|
+
*/
|
|
106
|
+
static CONTENT_LANGUAGE: string;
|
|
107
|
+
/**
|
|
108
|
+
* The HTTP `Content-Length` header field name.
|
|
109
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.2 Section 3.3.2 of RFC 7230}
|
|
110
|
+
*/
|
|
111
|
+
static CONTENT_LENGTH: string;
|
|
112
|
+
/**
|
|
113
|
+
* The HTTP `Content-Location` header field name.
|
|
114
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.4.2 Section 3.1.4.2 of RFC 7231}
|
|
115
|
+
*/
|
|
116
|
+
static CONTENT_LOCATION: string;
|
|
117
|
+
/**
|
|
118
|
+
* The HTTP `Content-Range` header field name.
|
|
119
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-4.2 Section 4.2 of RFC 7233}
|
|
120
|
+
*/
|
|
121
|
+
static CONTENT_RANGE: string;
|
|
122
|
+
/**
|
|
123
|
+
* The HTTP `Content-Type` header field name.
|
|
124
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.1.5 Section 3.1.1.5 of RFC 7231}
|
|
125
|
+
*/
|
|
126
|
+
static CONTENT_TYPE: string;
|
|
127
|
+
/**
|
|
128
|
+
* The HTTP `Cookie` header field name.
|
|
129
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.3.4 Section 4.3.4 of RFC 2109}
|
|
130
|
+
*/
|
|
131
|
+
static COOKIE: string;
|
|
132
|
+
/**
|
|
133
|
+
* The HTTP `Date` header field name.
|
|
134
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.1.2 Section 7.1.1.2 of RFC 7231}
|
|
135
|
+
*/
|
|
136
|
+
static DATE: string;
|
|
137
|
+
/**
|
|
138
|
+
* The HTTP `ETag` header field name.
|
|
139
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.3 Section 2.3 of RFC 7232}
|
|
140
|
+
*/
|
|
141
|
+
static ETAG: string;
|
|
142
|
+
/**
|
|
143
|
+
* The HTTP `Expect` header field name.
|
|
144
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.1 Section 5.1.1 of RFC 7231}
|
|
145
|
+
*/
|
|
146
|
+
static EXPECT: string;
|
|
147
|
+
/**
|
|
148
|
+
* The HTTP `Expires` header field name.
|
|
149
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.3 Section 5.3 of RFC 7234}
|
|
150
|
+
*/
|
|
151
|
+
static EXPIRES: string;
|
|
152
|
+
/**
|
|
153
|
+
* The HTTP `From` header field name.
|
|
154
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.1 Section 5.5.1 of RFC 7231}
|
|
155
|
+
*/
|
|
156
|
+
static FROM: string;
|
|
157
|
+
/**
|
|
158
|
+
* The HTTP `Host` header field name.
|
|
159
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.4 Section 5.4 of RFC 7230}
|
|
160
|
+
*/
|
|
161
|
+
static HOST: string;
|
|
162
|
+
/**
|
|
163
|
+
* The HTTP `If-Match` header field name.
|
|
164
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.1 Section 3.1 of RFC 7232}
|
|
165
|
+
*/
|
|
166
|
+
static IF_MATCH: string;
|
|
167
|
+
/**
|
|
168
|
+
* The HTTP `If-Modified-Since` header field name.
|
|
169
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.3 Section 3.3 of RFC 7232}
|
|
170
|
+
*/
|
|
171
|
+
static IF_MODIFIED_SINCE: string;
|
|
172
|
+
/**
|
|
173
|
+
* The HTTP `If-None-Match` header field name.
|
|
174
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.2 Section 3.2 of RFC 7232}
|
|
175
|
+
*/
|
|
176
|
+
static IF_NONE_MATCH: string;
|
|
177
|
+
/**
|
|
178
|
+
* The HTTP `If-Range` header field name.
|
|
179
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.2 Section 3.2 of RFC 7233}
|
|
180
|
+
*/
|
|
181
|
+
static IF_RANGE: string;
|
|
182
|
+
/**
|
|
183
|
+
* The HTTP `If-Unmodified-Since` header field name.
|
|
184
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.4 Section 3.4 of RFC 7232}
|
|
185
|
+
*/
|
|
186
|
+
static IF_UNMODIFIED_SINCE: string;
|
|
187
|
+
/**
|
|
188
|
+
* The HTTP `Last-Modified` header field name.
|
|
189
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.2 Section 2.2 of RFC 7232}
|
|
190
|
+
*/
|
|
191
|
+
static LAST_MODIFIED: string;
|
|
192
|
+
/**
|
|
193
|
+
* The HTTP `Link` header field name.
|
|
194
|
+
* @see {@link https://tools.ietf.org/html/rfc5988 RFC 5988}
|
|
195
|
+
*/
|
|
196
|
+
static LINK: string;
|
|
197
|
+
/**
|
|
198
|
+
* The HTTP `Location` header field name.
|
|
199
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.2 Section 7.1.2 of RFC 7231}
|
|
200
|
+
*/
|
|
201
|
+
static LOCATION: string;
|
|
202
|
+
/**
|
|
203
|
+
* The HTTP `Max-Forwards` header field name.
|
|
204
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.2 Section 5.1.2 of RFC 7231}
|
|
205
|
+
*/
|
|
206
|
+
static MAX_FORWARDS: string;
|
|
207
|
+
/**
|
|
208
|
+
* The HTTP `Origin` header field name.
|
|
209
|
+
* @see {@link https://tools.ietf.org/html/rfc6454 RFC 6454}
|
|
210
|
+
*/
|
|
211
|
+
static ORIGIN: string;
|
|
212
|
+
/**
|
|
213
|
+
* The HTTP `Pragma` header field name.
|
|
214
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.4 Section 5.4 of RFC 7234}
|
|
215
|
+
*/
|
|
216
|
+
static PRAGMA: string;
|
|
217
|
+
/**
|
|
218
|
+
* The HTTP `Proxy-Authenticate` header field name.
|
|
219
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.3 Section 4.3 of RFC 7235}
|
|
220
|
+
*/
|
|
221
|
+
static PROXY_AUTHENTICATE: string;
|
|
222
|
+
/**
|
|
223
|
+
* The HTTP `Proxy-Authorization` header field name.
|
|
224
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.4 Section 4.4 of RFC 7235}
|
|
225
|
+
*/
|
|
226
|
+
static PROXY_AUTHORIZATION: string;
|
|
227
|
+
/**
|
|
228
|
+
* The HTTP `Range` header field name.
|
|
229
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.1 Section 3.1 of RFC 7233}
|
|
230
|
+
*/
|
|
231
|
+
static RANGE: string;
|
|
232
|
+
/**
|
|
233
|
+
* The HTTP `Referer` header field name.
|
|
234
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.2 Section 5.5.2 of RFC 7231}
|
|
235
|
+
*/
|
|
236
|
+
static REFERER: string;
|
|
237
|
+
/**
|
|
238
|
+
* The HTTP `Retry-After` header field name.
|
|
239
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.3 Section 7.1.3 of RFC 7231}
|
|
240
|
+
*/
|
|
241
|
+
static RETRY_AFTER: string;
|
|
242
|
+
/**
|
|
243
|
+
* The HTTP `Server` header field name.
|
|
244
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.2 Section 7.4.2 of RFC 7231}
|
|
245
|
+
*/
|
|
246
|
+
static SERVER: string;
|
|
247
|
+
/**
|
|
248
|
+
* The HTTP `Set-Cookie` header field name.
|
|
249
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.2.2 Section 4.2.2 of RFC 2109}
|
|
250
|
+
*/
|
|
251
|
+
static SET_COOKIE: string;
|
|
252
|
+
/**
|
|
253
|
+
* The HTTP `Set-Cookie2` header field name.
|
|
254
|
+
* @see {@link https://tools.ietf.org/html/rfc2965 RFC 2965}
|
|
255
|
+
*/
|
|
256
|
+
static SET_COOKIE2: string;
|
|
257
|
+
/**
|
|
258
|
+
* The HTTP `TE` header field name.
|
|
259
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.3 Section 4.3 of RFC 7230}
|
|
260
|
+
*/
|
|
261
|
+
static TE: string;
|
|
262
|
+
/**
|
|
263
|
+
* The HTTP `Trailer` header field name.
|
|
264
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.4 Section 4.4 of RFC 7230}
|
|
265
|
+
*/
|
|
266
|
+
static TRAILER: string;
|
|
267
|
+
/**
|
|
268
|
+
* The HTTP `Transfer-Encoding` header field name.
|
|
269
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.1 Section 3.3.1 of RFC 7230}
|
|
270
|
+
*/
|
|
271
|
+
static TRANSFER_ENCODING: string;
|
|
272
|
+
/**
|
|
273
|
+
* The HTTP `Upgrade` header field name.
|
|
274
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.7 Section 6.7 of RFC 7230}
|
|
275
|
+
*/
|
|
276
|
+
static UPGRADE: string;
|
|
277
|
+
/**
|
|
278
|
+
* The HTTP `User-Agent` header field name.
|
|
279
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.3 Section 5.5.3 of RFC 7231}
|
|
280
|
+
*/
|
|
281
|
+
static USER_AGENT: string;
|
|
282
|
+
/**
|
|
283
|
+
* The HTTP `Vary` header field name.
|
|
284
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.4 Section 7.1.4 of RFC 7231}
|
|
285
|
+
*/
|
|
286
|
+
static VARY: string;
|
|
287
|
+
/**
|
|
288
|
+
* The HTTP `Via` header field name.
|
|
289
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.7.1 Section 5.7.1 of RFC 7230}
|
|
290
|
+
*/
|
|
291
|
+
static VIA: string;
|
|
292
|
+
/**
|
|
293
|
+
* The HTTP `Warning` header field name.
|
|
294
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.5 Section 5.5 of RFC 7234}
|
|
295
|
+
*/
|
|
296
|
+
static WARNING: string;
|
|
297
|
+
/**
|
|
298
|
+
* The HTTP `WWW-Authenticate` header field name.
|
|
299
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.1 Section 4.1 of RFC 7235}
|
|
300
|
+
*/
|
|
301
|
+
static WWW_AUTHENTICATE: string;
|
|
302
|
+
/**
|
|
303
|
+
* The HTTP `X-Requested-With` header field name.
|
|
304
|
+
*/
|
|
305
|
+
static X_REQUESTED_WITH: string;
|
|
306
|
+
}
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
export class HttpHeaders {
|
|
2
|
+
}
|
|
3
|
+
/**
|
|
4
|
+
* The HTTP `Accept` header field name.
|
|
5
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.2 Section 5.3.2 of RFC 7231}
|
|
6
|
+
*/
|
|
7
|
+
HttpHeaders.ACCEPT = 'Accept';
|
|
8
|
+
/**
|
|
9
|
+
* The HTTP `Accept-Charset` header field name.
|
|
10
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.3 Section 5.3.3 of RFC 7231}
|
|
11
|
+
*/
|
|
12
|
+
HttpHeaders.ACCEPT_CHARSET = 'Accept-Charset';
|
|
13
|
+
/**
|
|
14
|
+
* The HTTP `Accept-Encoding` header field name.
|
|
15
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.4 Section 5.3.4 of RFC 7231}
|
|
16
|
+
*/
|
|
17
|
+
HttpHeaders.ACCEPT_ENCODING = 'Accept-Encoding';
|
|
18
|
+
/**
|
|
19
|
+
* The HTTP `Accept-Language` header field name.
|
|
20
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.5 Section 5.3.5 of RFC 7231}
|
|
21
|
+
*/
|
|
22
|
+
HttpHeaders.ACCEPT_LANGUAGE = 'Accept-Language';
|
|
23
|
+
/**
|
|
24
|
+
* The HTTP `Accept-Ranges` header field name.
|
|
25
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-2.3 Section 5.3.5 of RFC 7233}
|
|
26
|
+
*/
|
|
27
|
+
HttpHeaders.ACCEPT_RANGES = 'Accept-Ranges';
|
|
28
|
+
/**
|
|
29
|
+
* The CORS `Access-Control-Allow-Credentials` response header field name.
|
|
30
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
31
|
+
*/
|
|
32
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials';
|
|
33
|
+
/**
|
|
34
|
+
* The CORS `Access-Control-Allow-Headers` response header field name.
|
|
35
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
36
|
+
*/
|
|
37
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers';
|
|
38
|
+
/**
|
|
39
|
+
* The CORS `Access-Control-Allow-Methods` response header field name.
|
|
40
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
41
|
+
*/
|
|
42
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods';
|
|
43
|
+
/**
|
|
44
|
+
* The CORS `Access-Control-Allow-Origin` response header field name.
|
|
45
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
46
|
+
*/
|
|
47
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin';
|
|
48
|
+
/**
|
|
49
|
+
* The CORS `Access-Control-Expose-Headers` response header field name.
|
|
50
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
51
|
+
*/
|
|
52
|
+
HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers';
|
|
53
|
+
/**
|
|
54
|
+
* The CORS `Access-Control-Max-Age` response header field name.
|
|
55
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
56
|
+
*/
|
|
57
|
+
HttpHeaders.ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age';
|
|
58
|
+
/**
|
|
59
|
+
* The CORS `Access-Control-Request-Headers` request header field name.
|
|
60
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
61
|
+
*/
|
|
62
|
+
HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers';
|
|
63
|
+
/**
|
|
64
|
+
* The CORS `Access-Control-Request-Method` request header field name.
|
|
65
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
66
|
+
*/
|
|
67
|
+
HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method';
|
|
68
|
+
/**
|
|
69
|
+
* The HTTP `Age` header field name.
|
|
70
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.1 Section 5.1 of RFC 7234}
|
|
71
|
+
*/
|
|
72
|
+
HttpHeaders.AGE = 'Age';
|
|
73
|
+
/**
|
|
74
|
+
* The HTTP `Allow` header field name.
|
|
75
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.1 Section 7.4.1 of RFC 7231}
|
|
76
|
+
*/
|
|
77
|
+
HttpHeaders.ALLOW = 'Allow';
|
|
78
|
+
/**
|
|
79
|
+
* The HTTP `Authorization` header field name.
|
|
80
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.2 Section 4.2 of RFC 7235}
|
|
81
|
+
*/
|
|
82
|
+
HttpHeaders.AUTHORIZATION = 'Authorization';
|
|
83
|
+
/**
|
|
84
|
+
* The HTTP `Cache-Control` header field name.
|
|
85
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.2 Section 5.2 of RFC 7234}
|
|
86
|
+
*/
|
|
87
|
+
HttpHeaders.CACHE_CONTROL = 'Cache-Control';
|
|
88
|
+
/**
|
|
89
|
+
* The HTTP `Connection` header field name.
|
|
90
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.1 Section 6.1 of RFC 7230}
|
|
91
|
+
*/
|
|
92
|
+
HttpHeaders.CONNECTION = 'Connection';
|
|
93
|
+
/**
|
|
94
|
+
* The HTTP `Content-Encoding` header field name.
|
|
95
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.2.2 Section 3.1.2.2 of RFC 7231}
|
|
96
|
+
*/
|
|
97
|
+
HttpHeaders.CONTENT_ENCODING = 'Content-Encoding';
|
|
98
|
+
/**
|
|
99
|
+
* The HTTP `Content-Disposition` header field name.
|
|
100
|
+
* @see {@link https://tools.ietf.org/html/rfc6266 RFC 6266}
|
|
101
|
+
*/
|
|
102
|
+
HttpHeaders.CONTENT_DISPOSITION = 'Content-Disposition';
|
|
103
|
+
/**
|
|
104
|
+
* The HTTP `Content-Language` header field name.
|
|
105
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.3.2 Section 3.1.3.2 of RFC 7231}
|
|
106
|
+
*/
|
|
107
|
+
HttpHeaders.CONTENT_LANGUAGE = 'Content-Language';
|
|
108
|
+
/**
|
|
109
|
+
* The HTTP `Content-Length` header field name.
|
|
110
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.2 Section 3.3.2 of RFC 7230}
|
|
111
|
+
*/
|
|
112
|
+
HttpHeaders.CONTENT_LENGTH = 'Content-Length';
|
|
113
|
+
/**
|
|
114
|
+
* The HTTP `Content-Location` header field name.
|
|
115
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.4.2 Section 3.1.4.2 of RFC 7231}
|
|
116
|
+
*/
|
|
117
|
+
HttpHeaders.CONTENT_LOCATION = 'Content-Location';
|
|
118
|
+
/**
|
|
119
|
+
* The HTTP `Content-Range` header field name.
|
|
120
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-4.2 Section 4.2 of RFC 7233}
|
|
121
|
+
*/
|
|
122
|
+
HttpHeaders.CONTENT_RANGE = 'Content-Range';
|
|
123
|
+
/**
|
|
124
|
+
* The HTTP `Content-Type` header field name.
|
|
125
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.1.5 Section 3.1.1.5 of RFC 7231}
|
|
126
|
+
*/
|
|
127
|
+
HttpHeaders.CONTENT_TYPE = 'Content-Type';
|
|
128
|
+
/**
|
|
129
|
+
* The HTTP `Cookie` header field name.
|
|
130
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.3.4 Section 4.3.4 of RFC 2109}
|
|
131
|
+
*/
|
|
132
|
+
HttpHeaders.COOKIE = 'Cookie';
|
|
133
|
+
/**
|
|
134
|
+
* The HTTP `Date` header field name.
|
|
135
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.1.2 Section 7.1.1.2 of RFC 7231}
|
|
136
|
+
*/
|
|
137
|
+
HttpHeaders.DATE = 'Date';
|
|
138
|
+
/**
|
|
139
|
+
* The HTTP `ETag` header field name.
|
|
140
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.3 Section 2.3 of RFC 7232}
|
|
141
|
+
*/
|
|
142
|
+
HttpHeaders.ETAG = 'ETag';
|
|
143
|
+
/**
|
|
144
|
+
* The HTTP `Expect` header field name.
|
|
145
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.1 Section 5.1.1 of RFC 7231}
|
|
146
|
+
*/
|
|
147
|
+
HttpHeaders.EXPECT = 'Expect';
|
|
148
|
+
/**
|
|
149
|
+
* The HTTP `Expires` header field name.
|
|
150
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.3 Section 5.3 of RFC 7234}
|
|
151
|
+
*/
|
|
152
|
+
HttpHeaders.EXPIRES = 'Expires';
|
|
153
|
+
/**
|
|
154
|
+
* The HTTP `From` header field name.
|
|
155
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.1 Section 5.5.1 of RFC 7231}
|
|
156
|
+
*/
|
|
157
|
+
HttpHeaders.FROM = 'From';
|
|
158
|
+
/**
|
|
159
|
+
* The HTTP `Host` header field name.
|
|
160
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.4 Section 5.4 of RFC 7230}
|
|
161
|
+
*/
|
|
162
|
+
HttpHeaders.HOST = 'Host';
|
|
163
|
+
/**
|
|
164
|
+
* The HTTP `If-Match` header field name.
|
|
165
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.1 Section 3.1 of RFC 7232}
|
|
166
|
+
*/
|
|
167
|
+
HttpHeaders.IF_MATCH = 'If-Match';
|
|
168
|
+
/**
|
|
169
|
+
* The HTTP `If-Modified-Since` header field name.
|
|
170
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.3 Section 3.3 of RFC 7232}
|
|
171
|
+
*/
|
|
172
|
+
HttpHeaders.IF_MODIFIED_SINCE = 'If-Modified-Since';
|
|
173
|
+
/**
|
|
174
|
+
* The HTTP `If-None-Match` header field name.
|
|
175
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.2 Section 3.2 of RFC 7232}
|
|
176
|
+
*/
|
|
177
|
+
HttpHeaders.IF_NONE_MATCH = 'If-None-Match';
|
|
178
|
+
/**
|
|
179
|
+
* The HTTP `If-Range` header field name.
|
|
180
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.2 Section 3.2 of RFC 7233}
|
|
181
|
+
*/
|
|
182
|
+
HttpHeaders.IF_RANGE = 'If-Range';
|
|
183
|
+
/**
|
|
184
|
+
* The HTTP `If-Unmodified-Since` header field name.
|
|
185
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.4 Section 3.4 of RFC 7232}
|
|
186
|
+
*/
|
|
187
|
+
HttpHeaders.IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
|
|
188
|
+
/**
|
|
189
|
+
* The HTTP `Last-Modified` header field name.
|
|
190
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.2 Section 2.2 of RFC 7232}
|
|
191
|
+
*/
|
|
192
|
+
HttpHeaders.LAST_MODIFIED = 'Last-Modified';
|
|
193
|
+
/**
|
|
194
|
+
* The HTTP `Link` header field name.
|
|
195
|
+
* @see {@link https://tools.ietf.org/html/rfc5988 RFC 5988}
|
|
196
|
+
*/
|
|
197
|
+
HttpHeaders.LINK = 'Link';
|
|
198
|
+
/**
|
|
199
|
+
* The HTTP `Location` header field name.
|
|
200
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.2 Section 7.1.2 of RFC 7231}
|
|
201
|
+
*/
|
|
202
|
+
HttpHeaders.LOCATION = 'Location';
|
|
203
|
+
/**
|
|
204
|
+
* The HTTP `Max-Forwards` header field name.
|
|
205
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.2 Section 5.1.2 of RFC 7231}
|
|
206
|
+
*/
|
|
207
|
+
HttpHeaders.MAX_FORWARDS = 'Max-Forwards';
|
|
208
|
+
/**
|
|
209
|
+
* The HTTP `Origin` header field name.
|
|
210
|
+
* @see {@link https://tools.ietf.org/html/rfc6454 RFC 6454}
|
|
211
|
+
*/
|
|
212
|
+
HttpHeaders.ORIGIN = 'Origin';
|
|
213
|
+
/**
|
|
214
|
+
* The HTTP `Pragma` header field name.
|
|
215
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.4 Section 5.4 of RFC 7234}
|
|
216
|
+
*/
|
|
217
|
+
HttpHeaders.PRAGMA = 'Pragma';
|
|
218
|
+
/**
|
|
219
|
+
* The HTTP `Proxy-Authenticate` header field name.
|
|
220
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.3 Section 4.3 of RFC 7235}
|
|
221
|
+
*/
|
|
222
|
+
HttpHeaders.PROXY_AUTHENTICATE = 'Proxy-Authenticate';
|
|
223
|
+
/**
|
|
224
|
+
* The HTTP `Proxy-Authorization` header field name.
|
|
225
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.4 Section 4.4 of RFC 7235}
|
|
226
|
+
*/
|
|
227
|
+
HttpHeaders.PROXY_AUTHORIZATION = 'Proxy-Authorization';
|
|
228
|
+
/**
|
|
229
|
+
* The HTTP `Range` header field name.
|
|
230
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.1 Section 3.1 of RFC 7233}
|
|
231
|
+
*/
|
|
232
|
+
HttpHeaders.RANGE = 'Range';
|
|
233
|
+
/**
|
|
234
|
+
* The HTTP `Referer` header field name.
|
|
235
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.2 Section 5.5.2 of RFC 7231}
|
|
236
|
+
*/
|
|
237
|
+
HttpHeaders.REFERER = 'Referer';
|
|
238
|
+
/**
|
|
239
|
+
* The HTTP `Retry-After` header field name.
|
|
240
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.3 Section 7.1.3 of RFC 7231}
|
|
241
|
+
*/
|
|
242
|
+
HttpHeaders.RETRY_AFTER = 'Retry-After';
|
|
243
|
+
/**
|
|
244
|
+
* The HTTP `Server` header field name.
|
|
245
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.2 Section 7.4.2 of RFC 7231}
|
|
246
|
+
*/
|
|
247
|
+
HttpHeaders.SERVER = 'Server';
|
|
248
|
+
/**
|
|
249
|
+
* The HTTP `Set-Cookie` header field name.
|
|
250
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.2.2 Section 4.2.2 of RFC 2109}
|
|
251
|
+
*/
|
|
252
|
+
HttpHeaders.SET_COOKIE = 'Set-Cookie';
|
|
253
|
+
/**
|
|
254
|
+
* The HTTP `Set-Cookie2` header field name.
|
|
255
|
+
* @see {@link https://tools.ietf.org/html/rfc2965 RFC 2965}
|
|
256
|
+
*/
|
|
257
|
+
HttpHeaders.SET_COOKIE2 = 'Set-Cookie2';
|
|
258
|
+
/**
|
|
259
|
+
* The HTTP `TE` header field name.
|
|
260
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.3 Section 4.3 of RFC 7230}
|
|
261
|
+
*/
|
|
262
|
+
HttpHeaders.TE = 'TE';
|
|
263
|
+
/**
|
|
264
|
+
* The HTTP `Trailer` header field name.
|
|
265
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.4 Section 4.4 of RFC 7230}
|
|
266
|
+
*/
|
|
267
|
+
HttpHeaders.TRAILER = 'Trailer';
|
|
268
|
+
/**
|
|
269
|
+
* The HTTP `Transfer-Encoding` header field name.
|
|
270
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.1 Section 3.3.1 of RFC 7230}
|
|
271
|
+
*/
|
|
272
|
+
HttpHeaders.TRANSFER_ENCODING = 'Transfer-Encoding';
|
|
273
|
+
/**
|
|
274
|
+
* The HTTP `Upgrade` header field name.
|
|
275
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.7 Section 6.7 of RFC 7230}
|
|
276
|
+
*/
|
|
277
|
+
HttpHeaders.UPGRADE = 'Upgrade';
|
|
278
|
+
/**
|
|
279
|
+
* The HTTP `User-Agent` header field name.
|
|
280
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.3 Section 5.5.3 of RFC 7231}
|
|
281
|
+
*/
|
|
282
|
+
HttpHeaders.USER_AGENT = 'User-Agent';
|
|
283
|
+
/**
|
|
284
|
+
* The HTTP `Vary` header field name.
|
|
285
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.4 Section 7.1.4 of RFC 7231}
|
|
286
|
+
*/
|
|
287
|
+
HttpHeaders.VARY = 'Vary';
|
|
288
|
+
/**
|
|
289
|
+
* The HTTP `Via` header field name.
|
|
290
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.7.1 Section 5.7.1 of RFC 7230}
|
|
291
|
+
*/
|
|
292
|
+
HttpHeaders.VIA = 'Via';
|
|
293
|
+
/**
|
|
294
|
+
* The HTTP `Warning` header field name.
|
|
295
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.5 Section 5.5 of RFC 7234}
|
|
296
|
+
*/
|
|
297
|
+
HttpHeaders.WARNING = 'Warning';
|
|
298
|
+
/**
|
|
299
|
+
* The HTTP `WWW-Authenticate` header field name.
|
|
300
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.1 Section 4.1 of RFC 7235}
|
|
301
|
+
*/
|
|
302
|
+
HttpHeaders.WWW_AUTHENTICATE = 'WWW-Authenticate';
|
|
303
|
+
/**
|
|
304
|
+
* The HTTP `X-Requested-With` header field name.
|
|
305
|
+
*/
|
|
306
|
+
HttpHeaders.X_REQUESTED_WITH = 'X-Requested-With';
|
|
307
|
+
//# sourceMappingURL=http-headers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-headers.js","sourceRoot":"","sources":["../../../src/common/http/http-headers.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export declare enum HttpStatus {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
OK = 200,
|
|
6
|
+
CREATED = 201,
|
|
7
|
+
ACCEPTED = 202,
|
|
8
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
9
|
+
NO_CONTENT = 204,
|
|
10
|
+
RESET_CONTENT = 205,
|
|
11
|
+
PARTIAL_CONTENT = 206,
|
|
12
|
+
AMBIGUOUS = 300,
|
|
13
|
+
MOVED_PERMANENTLY = 301,
|
|
14
|
+
FOUND = 302,
|
|
15
|
+
SEE_OTHER = 303,
|
|
16
|
+
NOT_MODIFIED = 304,
|
|
17
|
+
TEMPORARY_REDIRECT = 307,
|
|
18
|
+
PERMANENT_REDIRECT = 308,
|
|
19
|
+
BAD_REQUEST = 400,
|
|
20
|
+
UNAUTHORIZED = 401,
|
|
21
|
+
PAYMENT_REQUIRED = 402,
|
|
22
|
+
FORBIDDEN = 403,
|
|
23
|
+
NOT_FOUND = 404,
|
|
24
|
+
METHOD_NOT_ALLOWED = 405,
|
|
25
|
+
NOT_ACCEPTABLE = 406,
|
|
26
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
27
|
+
REQUEST_TIMEOUT = 408,
|
|
28
|
+
CONFLICT = 409,
|
|
29
|
+
GONE = 410,
|
|
30
|
+
LENGTH_REQUIRED = 411,
|
|
31
|
+
PRECONDITION_FAILED = 412,
|
|
32
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
33
|
+
URI_TOO_LONG = 414,
|
|
34
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
35
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
36
|
+
EXPECTATION_FAILED = 417,
|
|
37
|
+
I_AM_A_TEAPOT = 418,
|
|
38
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
39
|
+
FAILED_DEPENDENCY = 424,
|
|
40
|
+
TOO_MANY_REQUESTS = 429,
|
|
41
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
42
|
+
NOT_IMPLEMENTED = 501,
|
|
43
|
+
BAD_GATEWAY = 502,
|
|
44
|
+
SERVICE_UNAVAILABLE = 503,
|
|
45
|
+
GATEWAY_TIMEOUT = 504,
|
|
46
|
+
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
47
|
+
VARIANT_ALSO_NEGOTIATES = 506,
|
|
48
|
+
INSUFFICIENT_STORAGE = 507,
|
|
49
|
+
LOOP_DETECTED = 508,
|
|
50
|
+
BANDWIDTH_LIMIT_EXCEEDED = 509,
|
|
51
|
+
NOT_EXTENDED = 510,
|
|
52
|
+
NETWORK_AUTHENTICATION_REQUIRED = 511,
|
|
53
|
+
CONTINUE_REASON_PHRASE = "Continue",
|
|
54
|
+
SWITCHING_PROTOCOLS_REASON_PHRASE = "Switching Protocols",
|
|
55
|
+
PROCESSING_REASON_PHRASE = "Processing",
|
|
56
|
+
CHECKPOINT_REASON_PHRASE = "Checkpoint",
|
|
57
|
+
OK_REASON_PHRASE = "OK",
|
|
58
|
+
CREATED_REASON_PHRASE = "Created",
|
|
59
|
+
ACCEPTED_REASON_PHRASE = "Accepted",
|
|
60
|
+
NON_AUTHORITATIVE_INFORMATION_REASON_PHRASE = "Non-Authoritative Information",
|
|
61
|
+
NO_CONTENT_REASON_PHRASE = "No Content",
|
|
62
|
+
RESET_CONTENT_REASON_PHRASE = "Reset Content",
|
|
63
|
+
PARTIAL_CONTENT_REASON_PHRASE = "Partial Content",
|
|
64
|
+
MULTI_STATUS_REASON_PHRASE = "Multi-Status",
|
|
65
|
+
ALREADY_REPORTED_REASON_PHRASE = "Already Reported",
|
|
66
|
+
IM_USED_REASON_PHRASE = "IM Used",
|
|
67
|
+
MULTIPLE_CHOICES_REASON_PHRASE = "Multiple Choices",
|
|
68
|
+
MOVED_PERMANENTLY_REASON_PHRASE = "Moved Permanently",
|
|
69
|
+
FOUND_REASON_PHRASE = "Found",
|
|
70
|
+
MOVED_TEMPORARILY_REASON_PHRASE = "Moved Temporarily",
|
|
71
|
+
SEE_OTHER_REASON_PHRASE = "See Other",
|
|
72
|
+
NOT_MODIFIED_REASON_PHRASE = "Not Modified",
|
|
73
|
+
USE_PROXY_REASON_PHRASE = "Use Proxy",
|
|
74
|
+
TEMPORARY_REDIRECT_REASON_PHRASE = "Temporary Redirect",
|
|
75
|
+
PERMANENT_REDIRECT_REASON_PHRASE = "Permanent Redirect",
|
|
76
|
+
BAD_REQUEST_REASON_PHRASE = "Bad Request",
|
|
77
|
+
UNAUTHORIZED_REASON_PHRASE = "Unauthorized",
|
|
78
|
+
PAYMENT_REQUIRED_REASON_PHRASE = "Payment Required",
|
|
79
|
+
FORBIDDEN_REASON_PHRASE = "Forbidden",
|
|
80
|
+
NOT_FOUND_REASON_PHRASE = "Not Found",
|
|
81
|
+
METHOD_NOT_ALLOWED_REASON_PHRASE = "Method Not Allowed",
|
|
82
|
+
NOT_ACCEPTABLE_REASON_PHRASE = "Not Acceptable",
|
|
83
|
+
PROXY_AUTHENTICATION_REQUIRED_REASON_PHRASE = "Proxy Authentication Required",
|
|
84
|
+
REQUEST_TIMEOUT_REASON_PHRASE = "Request Timeout",
|
|
85
|
+
CONFLICT_REASON_PHRASE = "Conflict",
|
|
86
|
+
GONE_REASON_PHRASE = "Gone",
|
|
87
|
+
LENGTH_REQUIRED_REASON_PHRASE = "Length Required",
|
|
88
|
+
PRECONDITION_FAILED_REASON_PHRASE = "Precondition Failed",
|
|
89
|
+
PAYLOAD_TOO_LARGE_REASON_PHRASE = "Payload Too Large",
|
|
90
|
+
REQUEST_ENTITY_TOO_LARGE_REASON_PHRASE = "Request Entity Too Large",
|
|
91
|
+
URI_TOO_LONG_REASON_PHRASE = "URI Too Long",
|
|
92
|
+
REQUEST_URI_TOO_LONG_REASON_PHRASE = "Request-URI Too Long",
|
|
93
|
+
UNSUPPORTED_MEDIA_TYPE_REASON_PHRASE = "Unsupported Media Type",
|
|
94
|
+
REQUESTED_RANGE_NOT_SATISFIABLE_REASON_PHRASE = "Requested range not satisfiable",
|
|
95
|
+
EXPECTATION_FAILED_REASON_PHRASE = "Expectation Failed",
|
|
96
|
+
I_AM_A_TEAPOT_REASON_PHRASE = "I'm a teapot",
|
|
97
|
+
INSUFFICIENT_SPACE_ON_RESOURCE_REASON_PHRASE = "Insufficient Space On Resource",
|
|
98
|
+
METHOD_FAILURE_REASON_PHRASE = "Method Failure",
|
|
99
|
+
DESTINATION_LOCKED_REASON_PHRASE = "Destination Locked",
|
|
100
|
+
UNPROCESSABLE_ENTITY_REASON_PHRASE = "Unprocessable Entity",
|
|
101
|
+
LOCKED_REASON_PHRASE = "Locked",
|
|
102
|
+
FAILED_DEPENDENCY_REASON_PHRASE = "Failed Dependency",
|
|
103
|
+
UPGRADE_REQUIRED_REASON_PHRASE = "Upgrade Required",
|
|
104
|
+
PRECONDITION_REQUIRED_REASON_PHRASE = "Precondition Required",
|
|
105
|
+
TOO_MANY_REQUESTS_REASON_PHRASE = "Too Many Requests",
|
|
106
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE_REASON_PHRASE = "Request Header Fields Too Large",
|
|
107
|
+
UNAVAILABLE_FOR_LEGAL_REASONS_REASON_PHRASE = "Unavailable For Legal Reasons",
|
|
108
|
+
INTERNAL_SERVER_ERROR_REASON_PHRASE = "Internal Server Error",
|
|
109
|
+
NOT_IMPLEMENTED_REASON_PHRASE = "Not Implemented",
|
|
110
|
+
BAD_GATEWAY_REASON_PHRASE = "Bad Gateway",
|
|
111
|
+
SERVICE_UNAVAILABLE_REASON_PHRASE = "Service Unavailable",
|
|
112
|
+
GATEWAY_TIMEOUT_REASON_PHRASE = "Gateway Timeout",
|
|
113
|
+
HTTP_VERSION_NOT_SUPPORTED_REASON_PHRASE = "HTTP Version not supported",
|
|
114
|
+
VARIANT_ALSO_NEGOTIATES_REASON_PHRASE = "Variant Also Negotiates",
|
|
115
|
+
INSUFFICIENT_STORAGE_REASON_PHRASE = "Insufficient Storage",
|
|
116
|
+
LOOP_DETECTED_REASON_PHRASE = "Loop Detected",
|
|
117
|
+
BANDWIDTH_LIMIT_EXCEEDED_REASON_PHRASE = "Bandwidth Limit Exceeded",
|
|
118
|
+
NOT_EXTENDED_REASON_PHRASE = "Not Extended"
|
|
119
|
+
}
|
|
120
|
+
export declare enum MediaType {
|
|
121
|
+
ALL = "*/*",
|
|
122
|
+
APPLICATION_ATOM_XML = "application/atom+xml",
|
|
123
|
+
APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded",
|
|
124
|
+
APPLICATION_JSON = "application/json",
|
|
125
|
+
APPLICATION_JSON_UTF8 = "application/json;charset=UTF-8",
|
|
126
|
+
APPLICATION_OCTET_STREAM = "application/octet-stream",
|
|
127
|
+
APPLICATION_PDF = "application/pdf",
|
|
128
|
+
APPLICATION_PROBLEM_JSON = "application/problem+json",
|
|
129
|
+
APPLICATION_PROBLEM_JSON_UTF8 = "application/problem+json;charset=UTF-8",
|
|
130
|
+
APPLICATION_PROBLEM_XML = "application/problem+xml",
|
|
131
|
+
APPLICATION_RSS_XML = "application/rss+xml",
|
|
132
|
+
APPLICATION_STREAM_JSON = "application/stream+json",
|
|
133
|
+
APPLICATION_XHTML_XML = "application/xhtml+xml",
|
|
134
|
+
APPLICATION_XML = "application/xml",
|
|
135
|
+
IMAGE_GIF = "image/gif",
|
|
136
|
+
IMAGE_JPEG = "image/jpeg",
|
|
137
|
+
IMAGE_PNG = "image/png",
|
|
138
|
+
MULTIPART_FORM_DATA = "multipart/form-data",
|
|
139
|
+
TEXT_EVENT_STREAM = "text/event-stream",
|
|
140
|
+
TEXT_HTML = "text/html",
|
|
141
|
+
TEXT_MARKDOWN = "text/markdown",
|
|
142
|
+
TEXT_PLAIN = "text/plain",
|
|
143
|
+
TEXT_XML = "text/xml"
|
|
144
|
+
}
|
|
145
|
+
export declare enum HttpMethod {
|
|
146
|
+
GET = "GET",
|
|
147
|
+
HEAD = "HEAD",
|
|
148
|
+
POST = "POST",
|
|
149
|
+
PUT = "PUT",
|
|
150
|
+
PATCH = "PATCH",
|
|
151
|
+
DELETE = "DELETE",
|
|
152
|
+
OPTIONS = "OPTIONS",
|
|
153
|
+
TRACE = "TRACE"
|
|
154
|
+
}
|
|
155
|
+
export declare const XML_HTTP_REQUEST = "XMLHttpRequest";
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export var HttpStatus;
|
|
2
|
+
(function (HttpStatus) {
|
|
3
|
+
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
4
|
+
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
5
|
+
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
6
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
8
|
+
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
|
+
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
10
|
+
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
|
+
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
12
|
+
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13
|
+
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
14
|
+
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
15
|
+
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
16
|
+
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
17
|
+
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
18
|
+
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
19
|
+
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
20
|
+
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
21
|
+
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
22
|
+
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
23
|
+
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
24
|
+
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
25
|
+
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
26
|
+
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
27
|
+
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
28
|
+
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
29
|
+
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
30
|
+
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
31
|
+
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
32
|
+
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
33
|
+
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
34
|
+
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
35
|
+
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
36
|
+
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
37
|
+
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
38
|
+
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
39
|
+
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
40
|
+
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
41
|
+
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
42
|
+
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
43
|
+
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
44
|
+
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
45
|
+
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
46
|
+
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
47
|
+
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
48
|
+
HttpStatus[HttpStatus["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
49
|
+
HttpStatus[HttpStatus["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
50
|
+
HttpStatus[HttpStatus["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
51
|
+
HttpStatus[HttpStatus["BANDWIDTH_LIMIT_EXCEEDED"] = 509] = "BANDWIDTH_LIMIT_EXCEEDED";
|
|
52
|
+
HttpStatus[HttpStatus["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
53
|
+
HttpStatus[HttpStatus["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
54
|
+
HttpStatus["CONTINUE_REASON_PHRASE"] = "Continue";
|
|
55
|
+
HttpStatus["SWITCHING_PROTOCOLS_REASON_PHRASE"] = "Switching Protocols";
|
|
56
|
+
HttpStatus["PROCESSING_REASON_PHRASE"] = "Processing";
|
|
57
|
+
HttpStatus["CHECKPOINT_REASON_PHRASE"] = "Checkpoint";
|
|
58
|
+
// 2xx Success
|
|
59
|
+
HttpStatus["OK_REASON_PHRASE"] = "OK";
|
|
60
|
+
HttpStatus["CREATED_REASON_PHRASE"] = "Created";
|
|
61
|
+
HttpStatus["ACCEPTED_REASON_PHRASE"] = "Accepted";
|
|
62
|
+
HttpStatus["NON_AUTHORITATIVE_INFORMATION_REASON_PHRASE"] = "Non-Authoritative Information";
|
|
63
|
+
HttpStatus["NO_CONTENT_REASON_PHRASE"] = "No Content";
|
|
64
|
+
HttpStatus["RESET_CONTENT_REASON_PHRASE"] = "Reset Content";
|
|
65
|
+
HttpStatus["PARTIAL_CONTENT_REASON_PHRASE"] = "Partial Content";
|
|
66
|
+
HttpStatus["MULTI_STATUS_REASON_PHRASE"] = "Multi-Status";
|
|
67
|
+
HttpStatus["ALREADY_REPORTED_REASON_PHRASE"] = "Already Reported";
|
|
68
|
+
HttpStatus["IM_USED_REASON_PHRASE"] = "IM Used";
|
|
69
|
+
// 3xx Redirection
|
|
70
|
+
HttpStatus["MULTIPLE_CHOICES_REASON_PHRASE"] = "Multiple Choices";
|
|
71
|
+
HttpStatus["MOVED_PERMANENTLY_REASON_PHRASE"] = "Moved Permanently";
|
|
72
|
+
HttpStatus["FOUND_REASON_PHRASE"] = "Found";
|
|
73
|
+
HttpStatus["MOVED_TEMPORARILY_REASON_PHRASE"] = "Moved Temporarily";
|
|
74
|
+
HttpStatus["SEE_OTHER_REASON_PHRASE"] = "See Other";
|
|
75
|
+
HttpStatus["NOT_MODIFIED_REASON_PHRASE"] = "Not Modified";
|
|
76
|
+
HttpStatus["USE_PROXY_REASON_PHRASE"] = "Use Proxy";
|
|
77
|
+
HttpStatus["TEMPORARY_REDIRECT_REASON_PHRASE"] = "Temporary Redirect";
|
|
78
|
+
HttpStatus["PERMANENT_REDIRECT_REASON_PHRASE"] = "Permanent Redirect";
|
|
79
|
+
// --- 4xx Client Error ---
|
|
80
|
+
HttpStatus["BAD_REQUEST_REASON_PHRASE"] = "Bad Request";
|
|
81
|
+
HttpStatus["UNAUTHORIZED_REASON_PHRASE"] = "Unauthorized";
|
|
82
|
+
HttpStatus["PAYMENT_REQUIRED_REASON_PHRASE"] = "Payment Required";
|
|
83
|
+
HttpStatus["FORBIDDEN_REASON_PHRASE"] = "Forbidden";
|
|
84
|
+
HttpStatus["NOT_FOUND_REASON_PHRASE"] = "Not Found";
|
|
85
|
+
HttpStatus["METHOD_NOT_ALLOWED_REASON_PHRASE"] = "Method Not Allowed";
|
|
86
|
+
HttpStatus["NOT_ACCEPTABLE_REASON_PHRASE"] = "Not Acceptable";
|
|
87
|
+
HttpStatus["PROXY_AUTHENTICATION_REQUIRED_REASON_PHRASE"] = "Proxy Authentication Required";
|
|
88
|
+
HttpStatus["REQUEST_TIMEOUT_REASON_PHRASE"] = "Request Timeout";
|
|
89
|
+
HttpStatus["CONFLICT_REASON_PHRASE"] = "Conflict";
|
|
90
|
+
HttpStatus["GONE_REASON_PHRASE"] = "Gone";
|
|
91
|
+
HttpStatus["LENGTH_REQUIRED_REASON_PHRASE"] = "Length Required";
|
|
92
|
+
HttpStatus["PRECONDITION_FAILED_REASON_PHRASE"] = "Precondition Failed";
|
|
93
|
+
HttpStatus["PAYLOAD_TOO_LARGE_REASON_PHRASE"] = "Payload Too Large";
|
|
94
|
+
HttpStatus["REQUEST_ENTITY_TOO_LARGE_REASON_PHRASE"] = "Request Entity Too Large";
|
|
95
|
+
HttpStatus["URI_TOO_LONG_REASON_PHRASE"] = "URI Too Long";
|
|
96
|
+
HttpStatus["REQUEST_URI_TOO_LONG_REASON_PHRASE"] = "Request-URI Too Long";
|
|
97
|
+
HttpStatus["UNSUPPORTED_MEDIA_TYPE_REASON_PHRASE"] = "Unsupported Media Type";
|
|
98
|
+
HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE_REASON_PHRASE"] = "Requested range not satisfiable";
|
|
99
|
+
HttpStatus["EXPECTATION_FAILED_REASON_PHRASE"] = "Expectation Failed";
|
|
100
|
+
HttpStatus["I_AM_A_TEAPOT_REASON_PHRASE"] = "I'm a teapot";
|
|
101
|
+
HttpStatus["INSUFFICIENT_SPACE_ON_RESOURCE_REASON_PHRASE"] = "Insufficient Space On Resource";
|
|
102
|
+
HttpStatus["METHOD_FAILURE_REASON_PHRASE"] = "Method Failure";
|
|
103
|
+
HttpStatus["DESTINATION_LOCKED_REASON_PHRASE"] = "Destination Locked";
|
|
104
|
+
HttpStatus["UNPROCESSABLE_ENTITY_REASON_PHRASE"] = "Unprocessable Entity";
|
|
105
|
+
HttpStatus["LOCKED_REASON_PHRASE"] = "Locked";
|
|
106
|
+
HttpStatus["FAILED_DEPENDENCY_REASON_PHRASE"] = "Failed Dependency";
|
|
107
|
+
HttpStatus["UPGRADE_REQUIRED_REASON_PHRASE"] = "Upgrade Required";
|
|
108
|
+
HttpStatus["PRECONDITION_REQUIRED_REASON_PHRASE"] = "Precondition Required";
|
|
109
|
+
HttpStatus["TOO_MANY_REQUESTS_REASON_PHRASE"] = "Too Many Requests";
|
|
110
|
+
HttpStatus["REQUEST_HEADER_FIELDS_TOO_LARGE_REASON_PHRASE"] = "Request Header Fields Too Large";
|
|
111
|
+
HttpStatus["UNAVAILABLE_FOR_LEGAL_REASONS_REASON_PHRASE"] = "Unavailable For Legal Reasons";
|
|
112
|
+
// --- 5xx Server Error ---
|
|
113
|
+
HttpStatus["INTERNAL_SERVER_ERROR_REASON_PHRASE"] = "Internal Server Error";
|
|
114
|
+
HttpStatus["NOT_IMPLEMENTED_REASON_PHRASE"] = "Not Implemented";
|
|
115
|
+
HttpStatus["BAD_GATEWAY_REASON_PHRASE"] = "Bad Gateway";
|
|
116
|
+
HttpStatus["SERVICE_UNAVAILABLE_REASON_PHRASE"] = "Service Unavailable";
|
|
117
|
+
HttpStatus["GATEWAY_TIMEOUT_REASON_PHRASE"] = "Gateway Timeout";
|
|
118
|
+
HttpStatus["HTTP_VERSION_NOT_SUPPORTED_REASON_PHRASE"] = "HTTP Version not supported";
|
|
119
|
+
HttpStatus["VARIANT_ALSO_NEGOTIATES_REASON_PHRASE"] = "Variant Also Negotiates";
|
|
120
|
+
HttpStatus["INSUFFICIENT_STORAGE_REASON_PHRASE"] = "Insufficient Storage";
|
|
121
|
+
HttpStatus["LOOP_DETECTED_REASON_PHRASE"] = "Loop Detected";
|
|
122
|
+
HttpStatus["BANDWIDTH_LIMIT_EXCEEDED_REASON_PHRASE"] = "Bandwidth Limit Exceeded";
|
|
123
|
+
HttpStatus["NOT_EXTENDED_REASON_PHRASE"] = "Not Extended";
|
|
124
|
+
})(HttpStatus || (HttpStatus = {}));
|
|
125
|
+
export var MediaType;
|
|
126
|
+
(function (MediaType) {
|
|
127
|
+
MediaType["ALL"] = "*/*";
|
|
128
|
+
MediaType["APPLICATION_ATOM_XML"] = "application/atom+xml";
|
|
129
|
+
MediaType["APPLICATION_FORM_URLENCODED"] = "application/x-www-form-urlencoded";
|
|
130
|
+
MediaType["APPLICATION_JSON"] = "application/json";
|
|
131
|
+
MediaType["APPLICATION_JSON_UTF8"] = "application/json;charset=UTF-8";
|
|
132
|
+
MediaType["APPLICATION_OCTET_STREAM"] = "application/octet-stream";
|
|
133
|
+
MediaType["APPLICATION_PDF"] = "application/pdf";
|
|
134
|
+
MediaType["APPLICATION_PROBLEM_JSON"] = "application/problem+json";
|
|
135
|
+
MediaType["APPLICATION_PROBLEM_JSON_UTF8"] = "application/problem+json;charset=UTF-8";
|
|
136
|
+
MediaType["APPLICATION_PROBLEM_XML"] = "application/problem+xml";
|
|
137
|
+
MediaType["APPLICATION_RSS_XML"] = "application/rss+xml";
|
|
138
|
+
MediaType["APPLICATION_STREAM_JSON"] = "application/stream+json";
|
|
139
|
+
MediaType["APPLICATION_XHTML_XML"] = "application/xhtml+xml";
|
|
140
|
+
MediaType["APPLICATION_XML"] = "application/xml";
|
|
141
|
+
MediaType["IMAGE_GIF"] = "image/gif";
|
|
142
|
+
MediaType["IMAGE_JPEG"] = "image/jpeg";
|
|
143
|
+
MediaType["IMAGE_PNG"] = "image/png";
|
|
144
|
+
MediaType["MULTIPART_FORM_DATA"] = "multipart/form-data";
|
|
145
|
+
MediaType["TEXT_EVENT_STREAM"] = "text/event-stream";
|
|
146
|
+
MediaType["TEXT_HTML"] = "text/html";
|
|
147
|
+
MediaType["TEXT_MARKDOWN"] = "text/markdown";
|
|
148
|
+
MediaType["TEXT_PLAIN"] = "text/plain";
|
|
149
|
+
MediaType["TEXT_XML"] = "text/xml";
|
|
150
|
+
})(MediaType || (MediaType = {}));
|
|
151
|
+
export var HttpMethod;
|
|
152
|
+
(function (HttpMethod) {
|
|
153
|
+
HttpMethod["GET"] = "GET";
|
|
154
|
+
HttpMethod["HEAD"] = "HEAD";
|
|
155
|
+
HttpMethod["POST"] = "POST";
|
|
156
|
+
HttpMethod["PUT"] = "PUT";
|
|
157
|
+
HttpMethod["PATCH"] = "PATCH";
|
|
158
|
+
HttpMethod["DELETE"] = "DELETE";
|
|
159
|
+
HttpMethod["OPTIONS"] = "OPTIONS";
|
|
160
|
+
HttpMethod["TRACE"] = "TRACE";
|
|
161
|
+
})(HttpMethod || (HttpMethod = {}));
|
|
162
|
+
export const XML_HTTP_REQUEST = 'XMLHttpRequest';
|
|
163
|
+
//# sourceMappingURL=http-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-protocol.js","sourceRoot":"","sources":["../../../src/common/http/http-protocol.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { autoBind } from '@celljs/core';
|
|
2
|
+
import { RestOperations, RestOperationsFactory } from './client/index.js';
|
|
3
|
+
export default autoBind(bind => {
|
|
4
|
+
bind(RestOperations).toDynamicValue(ctx => {
|
|
5
|
+
const factory = ctx.container.get(RestOperationsFactory);
|
|
6
|
+
return factory.create();
|
|
7
|
+
}).inSingletonScope();
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/common/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjE,eAAe,QAAQ,CAAC,IAAI,CAAC,EAAE;IAC3B,IAAI,CAAC,cAAc,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACtC,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAwB,qBAAqB,CAAC,CAAC;QAChF,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAE1B,CAAC,CAAC,CAAC"}
|
package/esm/package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -18,22 +18,57 @@
|
|
|
18
18
|
"typings": "lib/common/index.d.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"lib",
|
|
21
|
+
"esm",
|
|
21
22
|
"src",
|
|
22
23
|
"cell.yml"
|
|
23
24
|
],
|
|
24
25
|
"scripts": {
|
|
25
|
-
"build": "tsc -b",
|
|
26
|
-
"clean": "rm -rf lib *.tsbuildinfo",
|
|
26
|
+
"build": "tsc -b && bun ../../scripts/build-esm.ts",
|
|
27
|
+
"clean": "rm -rf lib esm *.tsbuildinfo",
|
|
27
28
|
"test": "bun test --preload reflect-metadata ./lib",
|
|
28
29
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@celljs/core": "3.
|
|
32
|
+
"@celljs/core": "3.9.0",
|
|
32
33
|
"axios": "^0.26.1",
|
|
33
34
|
"rxjs": "^6.6.0",
|
|
34
35
|
"tslib": "^2.8.0"
|
|
35
36
|
},
|
|
36
37
|
"publishConfig": {
|
|
37
38
|
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"webpack": "./lib/common/index.js",
|
|
43
|
+
"import": "./esm/common/index.js",
|
|
44
|
+
"default": "./lib/common/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
"./lib/common": {
|
|
48
|
+
"webpack": "./lib/common/index.js",
|
|
49
|
+
"import": "./esm/common/index.js",
|
|
50
|
+
"default": "./lib/common/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./lib/common/client": {
|
|
53
|
+
"webpack": "./lib/common/client/index.js",
|
|
54
|
+
"import": "./esm/common/client/index.js",
|
|
55
|
+
"default": "./lib/common/client/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./lib/common/http": {
|
|
58
|
+
"webpack": "./lib/common/http/index.js",
|
|
59
|
+
"import": "./esm/common/http/index.js",
|
|
60
|
+
"default": "./lib/common/http/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./lib/*.js": {
|
|
63
|
+
"webpack": "./lib/*.js",
|
|
64
|
+
"import": "./esm/*.js",
|
|
65
|
+
"default": "./lib/*.js"
|
|
66
|
+
},
|
|
67
|
+
"./lib/*": {
|
|
68
|
+
"webpack": "./lib/*.js",
|
|
69
|
+
"import": "./esm/*.js",
|
|
70
|
+
"default": "./lib/*.js"
|
|
71
|
+
},
|
|
72
|
+
"./*": "./*"
|
|
38
73
|
}
|
|
39
74
|
}
|