@gatling.io/http 3.15.1 → 3.15.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gatling.io/http",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://gatling.io",
6
6
  "repository": "github:gatling/gatling-js",
@@ -20,17 +20,20 @@
20
20
  "main": "target/index.js",
21
21
  "types": "target/index.d.ts",
22
22
  "dependencies": {
23
- "@gatling.io/core": "3.15.1",
24
- "@gatling.io/jvm-types": "3.15.1"
23
+ "@gatling.io/core": "3.15.2",
24
+ "@gatling.io/jvm-types": "3.15.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/jest": "30.0.0",
28
- "jest": "30.2.0",
28
+ "jest": "30.3.0",
29
29
  "prettier": "3.8.1",
30
30
  "rimraf": "6.1.3",
31
31
  "ts-jest": "29.4.6",
32
32
  "ts-node": "10.9.2",
33
- "typescript": "5.9.3"
33
+ "typescript": "6.0.2"
34
+ },
35
+ "overrides": {
36
+ "typescript": "$typescript"
34
37
  },
35
38
  "scripts": {
36
39
  "clean": "rimraf target",
@@ -2,6 +2,238 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromJvmHttpResponseStatus = exports.HttpResponseStatus = void 0;
4
4
  class HttpResponseStatus {
5
+ code;
6
+ reasonPhrase;
7
+ /**
8
+ * 100 Continue
9
+ */
10
+ static CONTINUE = new HttpResponseStatus(100, "Continue");
11
+ /**
12
+ * 101 Switching Protocols
13
+ */
14
+ static SWITCHING_PROTOCOLS = new HttpResponseStatus(101, "Switching Protocols");
15
+ /**
16
+ * 102 Processing (WebDAV, RFC2518)
17
+ */
18
+ static PROCESSING = new HttpResponseStatus(102, "Processing");
19
+ /**
20
+ * 103 Early Hints (RFC 8297)
21
+ */
22
+ static EARLY_HINTS = new HttpResponseStatus(103, "Early Hints");
23
+ /**
24
+ * 200 OK
25
+ */
26
+ static OK = new HttpResponseStatus(200, "OK");
27
+ /**
28
+ * 201 Created
29
+ */
30
+ static CREATED = new HttpResponseStatus(201, "Created");
31
+ /**
32
+ * 202 Accepted
33
+ */
34
+ static ACCEPTED = new HttpResponseStatus(202, "Accepted");
35
+ /**
36
+ * 203 Non-Authoritative Information (since HTTP/1.1)
37
+ */
38
+ static NON_AUTHORITATIVE_INFORMATION = new HttpResponseStatus(203, "Non-Authoritative Information");
39
+ /**
40
+ * 204 No Content
41
+ */
42
+ static NO_CONTENT = new HttpResponseStatus(204, "No Content");
43
+ /**
44
+ * 205 Reset Content
45
+ */
46
+ static RESET_CONTENT = new HttpResponseStatus(205, "Reset Content");
47
+ /**
48
+ * 206 Partial Content
49
+ */
50
+ static PARTIAL_CONTENT = new HttpResponseStatus(206, "Partial Content");
51
+ /**
52
+ * 207 Multi-Status (WebDAV, RFC2518)
53
+ */
54
+ static MULTI_STATUS = new HttpResponseStatus(207, "Multi-Status");
55
+ /**
56
+ * 300 Multiple Choices
57
+ */
58
+ static MULTIPLE_CHOICES = new HttpResponseStatus(300, "Multiple Choices");
59
+ /**
60
+ * 301 Moved Permanently
61
+ */
62
+ static MOVED_PERMANENTLY = new HttpResponseStatus(301, "Moved Permanently");
63
+ /**
64
+ * 302 Found
65
+ */
66
+ static FOUND = new HttpResponseStatus(302, "Found");
67
+ /**
68
+ * 303 See Other (since HTTP/1.1)
69
+ */
70
+ static SEE_OTHER = new HttpResponseStatus(303, "See Other");
71
+ /**
72
+ * 304 Not Modified
73
+ */
74
+ static NOT_MODIFIED = new HttpResponseStatus(304, "Not Modified");
75
+ /**
76
+ * 305 Use Proxy (since HTTP/1.1)
77
+ */
78
+ static USE_PROXY = new HttpResponseStatus(305, "Use Proxy");
79
+ /**
80
+ * 307 Temporary Redirect (since HTTP/1.1)
81
+ */
82
+ static TEMPORARY_REDIRECT = new HttpResponseStatus(307, "Temporary Redirect");
83
+ /**
84
+ * 308 Permanent Redirect (RFC7538)
85
+ */
86
+ static PERMANENT_REDIRECT = new HttpResponseStatus(308, "Permanent Redirect");
87
+ /**
88
+ * 400 Bad Request
89
+ */
90
+ static BAD_REQUEST = new HttpResponseStatus(400, "Bad Request");
91
+ /**
92
+ * 401 Unauthorized
93
+ */
94
+ static UNAUTHORIZED = new HttpResponseStatus(401, "Unauthorized");
95
+ /**
96
+ * 402 Payment Required
97
+ */
98
+ static PAYMENT_REQUIRED = new HttpResponseStatus(402, "Payment Required");
99
+ /**
100
+ * 403 Forbidden
101
+ */
102
+ static FORBIDDEN = new HttpResponseStatus(403, "Forbidden");
103
+ /**
104
+ * 404 Not Found
105
+ */
106
+ static NOT_FOUND = new HttpResponseStatus(404, "Not Found");
107
+ /**
108
+ * 405 Method Not Allowed
109
+ */
110
+ static METHOD_NOT_ALLOWED = new HttpResponseStatus(405, "Method Not Allowed");
111
+ /**
112
+ * 406 Not Acceptable
113
+ */
114
+ static NOT_ACCEPTABLE = new HttpResponseStatus(406, "Not Acceptable");
115
+ /**
116
+ * 407 Proxy Authentication Required
117
+ */
118
+ static PROXY_AUTHENTICATION_REQUIRED = new HttpResponseStatus(407, "Proxy Authentication Required");
119
+ /**
120
+ * 408 Request Timeout
121
+ */
122
+ static REQUEST_TIMEOUT = new HttpResponseStatus(408, "Request Timeout");
123
+ /**
124
+ * 409 Conflict
125
+ */
126
+ static CONFLICT = new HttpResponseStatus(409, "Conflict");
127
+ /**
128
+ * 410 Gone
129
+ */
130
+ static GONE = new HttpResponseStatus(410, "Gone");
131
+ /**
132
+ * 411 Length Required
133
+ */
134
+ static LENGTH_REQUIRED = new HttpResponseStatus(411, "Length Required");
135
+ /**
136
+ * 412 Precondition Failed
137
+ */
138
+ static PRECONDITION_FAILED = new HttpResponseStatus(412, "Precondition Failed");
139
+ /**
140
+ * 413 Request Entity Too Large
141
+ */
142
+ static REQUEST_ENTITY_TOO_LARGE = new HttpResponseStatus(413, "Request Entity Too Large");
143
+ /**
144
+ * 414 Request-URI Too Long
145
+ */
146
+ static REQUEST_URI_TOO_LONG = new HttpResponseStatus(414, "Request-URI Too Long");
147
+ /**
148
+ * 415 Unsupported Media Type
149
+ */
150
+ static UNSUPPORTED_MEDIA_TYPE = new HttpResponseStatus(415, "Unsupported Media Type");
151
+ /**
152
+ * 416 Requested Range Not Satisfiable
153
+ */
154
+ static REQUESTED_RANGE_NOT_SATISFIABLE = new HttpResponseStatus(416, "Requested Range Not Satisfiable");
155
+ /**
156
+ * 417 Expectation Failed
157
+ */
158
+ static EXPECTATION_FAILED = new HttpResponseStatus(417, "Expectation Failed");
159
+ /**
160
+ * 421 Misdirected Request
161
+ *
162
+ * @see <a href="https://tools.ietf.org/html/rfc7540#section-9.1.2">421 (Misdirected Request) Status Code</a>
163
+ */
164
+ static MISDIRECTED_REQUEST = new HttpResponseStatus(421, "Misdirected Request");
165
+ /**
166
+ * 422 Unprocessable Entity (WebDAV, RFC4918)
167
+ */
168
+ static UNPROCESSABLE_ENTITY = new HttpResponseStatus(422, "Unprocessable Entity");
169
+ /**
170
+ * 423 Locked (WebDAV, RFC4918)
171
+ */
172
+ static LOCKED = new HttpResponseStatus(423, "Locked");
173
+ /**
174
+ * 424 Failed Dependency (WebDAV, RFC4918)
175
+ */
176
+ static FAILED_DEPENDENCY = new HttpResponseStatus(424, "Failed Dependency");
177
+ /**
178
+ * 425 Unordered Collection (WebDAV, RFC3648)
179
+ */
180
+ static UNORDERED_COLLECTION = new HttpResponseStatus(425, "Unordered Collection");
181
+ /**
182
+ * 426 Upgrade Required (RFC2817)
183
+ */
184
+ static UPGRADE_REQUIRED = new HttpResponseStatus(426, "Upgrade Required");
185
+ /**
186
+ * 428 Precondition Required (RFC6585)
187
+ */
188
+ static PRECONDITION_REQUIRED = new HttpResponseStatus(428, "Precondition Required");
189
+ /**
190
+ * 429 Too Many Requests (RFC6585)
191
+ */
192
+ static TOO_MANY_REQUESTS = new HttpResponseStatus(429, "Too Many Requests");
193
+ /**
194
+ * 431 Request Header Fields Too Large (RFC6585)
195
+ */
196
+ static REQUEST_HEADER_FIELDS_TOO_LARGE = new HttpResponseStatus(431, "Request Header Fields Too Large");
197
+ /**
198
+ * 500 Internal Server Error
199
+ */
200
+ static INTERNAL_SERVER_ERROR = new HttpResponseStatus(500, "Internal Server Error");
201
+ /**
202
+ * 501 Not Implemented
203
+ */
204
+ static NOT_IMPLEMENTED = new HttpResponseStatus(501, "Not Implemented");
205
+ /**
206
+ * 502 Bad Gateway
207
+ */
208
+ static BAD_GATEWAY = new HttpResponseStatus(502, "Bad Gateway");
209
+ /**
210
+ * 503 Service Unavailable
211
+ */
212
+ static SERVICE_UNAVAILABLE = new HttpResponseStatus(503, "Service Unavailable");
213
+ /**
214
+ * 504 Gateway Timeout
215
+ */
216
+ static GATEWAY_TIMEOUT = new HttpResponseStatus(504, "Gateway Timeout");
217
+ /**
218
+ * 505 HTTP Version Not Supported
219
+ */
220
+ static HTTP_VERSION_NOT_SUPPORTED = new HttpResponseStatus(505, "HTTP Version Not Supported");
221
+ /**
222
+ * 506 Variant Also Negotiates (RFC2295)
223
+ */
224
+ static VARIANT_ALSO_NEGOTIATES = new HttpResponseStatus(506, "Variant Also Negotiates");
225
+ /**
226
+ * 507 Insufficient Storage (WebDAV, RFC4918)
227
+ */
228
+ static INSUFFICIENT_STORAGE = new HttpResponseStatus(507, "Insufficient Storage");
229
+ /**
230
+ * 510 Not Extended (RFC2774)
231
+ */
232
+ static NOT_EXTENDED = new HttpResponseStatus(510, "Not Extended");
233
+ /**
234
+ * 511 Network Authentication Required (RFC6585)
235
+ */
236
+ static NETWORK_AUTHENTICATION_REQUIRED = new HttpResponseStatus(511, "Network Authentication Required");
5
237
  constructor(code, reasonPhrase) {
6
238
  this.code = code;
7
239
  this.reasonPhrase = reasonPhrase;
@@ -9,236 +241,6 @@ class HttpResponseStatus {
9
241
  }
10
242
  }
11
243
  exports.HttpResponseStatus = HttpResponseStatus;
12
- /**
13
- * 100 Continue
14
- */
15
- HttpResponseStatus.CONTINUE = new HttpResponseStatus(100, "Continue");
16
- /**
17
- * 101 Switching Protocols
18
- */
19
- HttpResponseStatus.SWITCHING_PROTOCOLS = new HttpResponseStatus(101, "Switching Protocols");
20
- /**
21
- * 102 Processing (WebDAV, RFC2518)
22
- */
23
- HttpResponseStatus.PROCESSING = new HttpResponseStatus(102, "Processing");
24
- /**
25
- * 103 Early Hints (RFC 8297)
26
- */
27
- HttpResponseStatus.EARLY_HINTS = new HttpResponseStatus(103, "Early Hints");
28
- /**
29
- * 200 OK
30
- */
31
- HttpResponseStatus.OK = new HttpResponseStatus(200, "OK");
32
- /**
33
- * 201 Created
34
- */
35
- HttpResponseStatus.CREATED = new HttpResponseStatus(201, "Created");
36
- /**
37
- * 202 Accepted
38
- */
39
- HttpResponseStatus.ACCEPTED = new HttpResponseStatus(202, "Accepted");
40
- /**
41
- * 203 Non-Authoritative Information (since HTTP/1.1)
42
- */
43
- HttpResponseStatus.NON_AUTHORITATIVE_INFORMATION = new HttpResponseStatus(203, "Non-Authoritative Information");
44
- /**
45
- * 204 No Content
46
- */
47
- HttpResponseStatus.NO_CONTENT = new HttpResponseStatus(204, "No Content");
48
- /**
49
- * 205 Reset Content
50
- */
51
- HttpResponseStatus.RESET_CONTENT = new HttpResponseStatus(205, "Reset Content");
52
- /**
53
- * 206 Partial Content
54
- */
55
- HttpResponseStatus.PARTIAL_CONTENT = new HttpResponseStatus(206, "Partial Content");
56
- /**
57
- * 207 Multi-Status (WebDAV, RFC2518)
58
- */
59
- HttpResponseStatus.MULTI_STATUS = new HttpResponseStatus(207, "Multi-Status");
60
- /**
61
- * 300 Multiple Choices
62
- */
63
- HttpResponseStatus.MULTIPLE_CHOICES = new HttpResponseStatus(300, "Multiple Choices");
64
- /**
65
- * 301 Moved Permanently
66
- */
67
- HttpResponseStatus.MOVED_PERMANENTLY = new HttpResponseStatus(301, "Moved Permanently");
68
- /**
69
- * 302 Found
70
- */
71
- HttpResponseStatus.FOUND = new HttpResponseStatus(302, "Found");
72
- /**
73
- * 303 See Other (since HTTP/1.1)
74
- */
75
- HttpResponseStatus.SEE_OTHER = new HttpResponseStatus(303, "See Other");
76
- /**
77
- * 304 Not Modified
78
- */
79
- HttpResponseStatus.NOT_MODIFIED = new HttpResponseStatus(304, "Not Modified");
80
- /**
81
- * 305 Use Proxy (since HTTP/1.1)
82
- */
83
- HttpResponseStatus.USE_PROXY = new HttpResponseStatus(305, "Use Proxy");
84
- /**
85
- * 307 Temporary Redirect (since HTTP/1.1)
86
- */
87
- HttpResponseStatus.TEMPORARY_REDIRECT = new HttpResponseStatus(307, "Temporary Redirect");
88
- /**
89
- * 308 Permanent Redirect (RFC7538)
90
- */
91
- HttpResponseStatus.PERMANENT_REDIRECT = new HttpResponseStatus(308, "Permanent Redirect");
92
- /**
93
- * 400 Bad Request
94
- */
95
- HttpResponseStatus.BAD_REQUEST = new HttpResponseStatus(400, "Bad Request");
96
- /**
97
- * 401 Unauthorized
98
- */
99
- HttpResponseStatus.UNAUTHORIZED = new HttpResponseStatus(401, "Unauthorized");
100
- /**
101
- * 402 Payment Required
102
- */
103
- HttpResponseStatus.PAYMENT_REQUIRED = new HttpResponseStatus(402, "Payment Required");
104
- /**
105
- * 403 Forbidden
106
- */
107
- HttpResponseStatus.FORBIDDEN = new HttpResponseStatus(403, "Forbidden");
108
- /**
109
- * 404 Not Found
110
- */
111
- HttpResponseStatus.NOT_FOUND = new HttpResponseStatus(404, "Not Found");
112
- /**
113
- * 405 Method Not Allowed
114
- */
115
- HttpResponseStatus.METHOD_NOT_ALLOWED = new HttpResponseStatus(405, "Method Not Allowed");
116
- /**
117
- * 406 Not Acceptable
118
- */
119
- HttpResponseStatus.NOT_ACCEPTABLE = new HttpResponseStatus(406, "Not Acceptable");
120
- /**
121
- * 407 Proxy Authentication Required
122
- */
123
- HttpResponseStatus.PROXY_AUTHENTICATION_REQUIRED = new HttpResponseStatus(407, "Proxy Authentication Required");
124
- /**
125
- * 408 Request Timeout
126
- */
127
- HttpResponseStatus.REQUEST_TIMEOUT = new HttpResponseStatus(408, "Request Timeout");
128
- /**
129
- * 409 Conflict
130
- */
131
- HttpResponseStatus.CONFLICT = new HttpResponseStatus(409, "Conflict");
132
- /**
133
- * 410 Gone
134
- */
135
- HttpResponseStatus.GONE = new HttpResponseStatus(410, "Gone");
136
- /**
137
- * 411 Length Required
138
- */
139
- HttpResponseStatus.LENGTH_REQUIRED = new HttpResponseStatus(411, "Length Required");
140
- /**
141
- * 412 Precondition Failed
142
- */
143
- HttpResponseStatus.PRECONDITION_FAILED = new HttpResponseStatus(412, "Precondition Failed");
144
- /**
145
- * 413 Request Entity Too Large
146
- */
147
- HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE = new HttpResponseStatus(413, "Request Entity Too Large");
148
- /**
149
- * 414 Request-URI Too Long
150
- */
151
- HttpResponseStatus.REQUEST_URI_TOO_LONG = new HttpResponseStatus(414, "Request-URI Too Long");
152
- /**
153
- * 415 Unsupported Media Type
154
- */
155
- HttpResponseStatus.UNSUPPORTED_MEDIA_TYPE = new HttpResponseStatus(415, "Unsupported Media Type");
156
- /**
157
- * 416 Requested Range Not Satisfiable
158
- */
159
- HttpResponseStatus.REQUESTED_RANGE_NOT_SATISFIABLE = new HttpResponseStatus(416, "Requested Range Not Satisfiable");
160
- /**
161
- * 417 Expectation Failed
162
- */
163
- HttpResponseStatus.EXPECTATION_FAILED = new HttpResponseStatus(417, "Expectation Failed");
164
- /**
165
- * 421 Misdirected Request
166
- *
167
- * @see <a href="https://tools.ietf.org/html/rfc7540#section-9.1.2">421 (Misdirected Request) Status Code</a>
168
- */
169
- HttpResponseStatus.MISDIRECTED_REQUEST = new HttpResponseStatus(421, "Misdirected Request");
170
- /**
171
- * 422 Unprocessable Entity (WebDAV, RFC4918)
172
- */
173
- HttpResponseStatus.UNPROCESSABLE_ENTITY = new HttpResponseStatus(422, "Unprocessable Entity");
174
- /**
175
- * 423 Locked (WebDAV, RFC4918)
176
- */
177
- HttpResponseStatus.LOCKED = new HttpResponseStatus(423, "Locked");
178
- /**
179
- * 424 Failed Dependency (WebDAV, RFC4918)
180
- */
181
- HttpResponseStatus.FAILED_DEPENDENCY = new HttpResponseStatus(424, "Failed Dependency");
182
- /**
183
- * 425 Unordered Collection (WebDAV, RFC3648)
184
- */
185
- HttpResponseStatus.UNORDERED_COLLECTION = new HttpResponseStatus(425, "Unordered Collection");
186
- /**
187
- * 426 Upgrade Required (RFC2817)
188
- */
189
- HttpResponseStatus.UPGRADE_REQUIRED = new HttpResponseStatus(426, "Upgrade Required");
190
- /**
191
- * 428 Precondition Required (RFC6585)
192
- */
193
- HttpResponseStatus.PRECONDITION_REQUIRED = new HttpResponseStatus(428, "Precondition Required");
194
- /**
195
- * 429 Too Many Requests (RFC6585)
196
- */
197
- HttpResponseStatus.TOO_MANY_REQUESTS = new HttpResponseStatus(429, "Too Many Requests");
198
- /**
199
- * 431 Request Header Fields Too Large (RFC6585)
200
- */
201
- HttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGE = new HttpResponseStatus(431, "Request Header Fields Too Large");
202
- /**
203
- * 500 Internal Server Error
204
- */
205
- HttpResponseStatus.INTERNAL_SERVER_ERROR = new HttpResponseStatus(500, "Internal Server Error");
206
- /**
207
- * 501 Not Implemented
208
- */
209
- HttpResponseStatus.NOT_IMPLEMENTED = new HttpResponseStatus(501, "Not Implemented");
210
- /**
211
- * 502 Bad Gateway
212
- */
213
- HttpResponseStatus.BAD_GATEWAY = new HttpResponseStatus(502, "Bad Gateway");
214
- /**
215
- * 503 Service Unavailable
216
- */
217
- HttpResponseStatus.SERVICE_UNAVAILABLE = new HttpResponseStatus(503, "Service Unavailable");
218
- /**
219
- * 504 Gateway Timeout
220
- */
221
- HttpResponseStatus.GATEWAY_TIMEOUT = new HttpResponseStatus(504, "Gateway Timeout");
222
- /**
223
- * 505 HTTP Version Not Supported
224
- */
225
- HttpResponseStatus.HTTP_VERSION_NOT_SUPPORTED = new HttpResponseStatus(505, "HTTP Version Not Supported");
226
- /**
227
- * 506 Variant Also Negotiates (RFC2295)
228
- */
229
- HttpResponseStatus.VARIANT_ALSO_NEGOTIATES = new HttpResponseStatus(506, "Variant Also Negotiates");
230
- /**
231
- * 507 Insufficient Storage (WebDAV, RFC4918)
232
- */
233
- HttpResponseStatus.INSUFFICIENT_STORAGE = new HttpResponseStatus(507, "Insufficient Storage");
234
- /**
235
- * 510 Not Extended (RFC2774)
236
- */
237
- HttpResponseStatus.NOT_EXTENDED = new HttpResponseStatus(510, "Not Extended");
238
- /**
239
- * 511 Network Authentication Required (RFC6585)
240
- */
241
- HttpResponseStatus.NETWORK_AUTHENTICATION_REQUIRED = new HttpResponseStatus(511, "Network Authentication Required");
242
244
  const fromJvmHttpResponseStatus = (jvmStatus) => {
243
245
  switch (jvmStatus.code()) {
244
246
  case 100: