@dynatrace-sdk/http-client 1.0.4 → 1.0.5

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/docs/DOCS.md CHANGED
@@ -15,7 +15,7 @@ import NpmLogo from '@site/static/img/npm-logo.png';
15
15
  </a>
16
16
  </div>
17
17
  <div class="col" style={{textAlign: 'right'}}>
18
- <a href="https://www.npmjs.com/package/@dynatrace-sdk/http-client/v/1.0.4">v1.0.4</a>
18
+ <a href="https://www.npmjs.com/package/@dynatrace-sdk/http-client/v/1.0.5">v1.0.5</a>
19
19
  </div>
20
20
  </div>
21
21
 
@@ -35,34 +35,25 @@ npm install @dynatrace-sdk/http-client
35
35
 
36
36
  <div class="padding-left--md">
37
37
 
38
- **Parameters**
38
+ #### Parameters
39
39
 
40
- <div class="padding-left--md padding-bottom--md">
41
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
42
- <div class="padding-left--md">
43
-
44
- </div>
45
-
46
- </div>
47
- <div class="padding-left--md padding-bottom--md">
48
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
49
- <div class="padding-left--md">
50
-
51
- </div>
52
-
53
- </div>
40
+ | Name | Type |
41
+ | ---------------------------- | ---------------------------------------------------------------------------------------- |
42
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
43
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
54
44
 
55
45
  </div>
56
46
 
57
47
  #### Properties
58
48
 
59
- <div class="padding-left--md padding-bottom--md">
60
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
61
- <div class="padding-left--md">
62
-
63
- </div>
64
-
65
- </div>
49
+ | Name | Type |
50
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- |
51
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
52
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
53
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
54
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
55
+ | prepareStackTrace | Object |
56
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> |
66
57
 
67
58
  ### PlatformBinary
68
59
 
@@ -72,13 +63,9 @@ Represents an environment agnostic (browser vs node) abstraction layer for binar
72
63
 
73
64
  #### Properties
74
65
 
75
- <div class="padding-left--md padding-bottom--md">
76
- <strong>data</strong>: <a href="#arraybuffer">ArrayBuffer</a> | <a href="#blob">Blob</a> | <a href="#readablestream">ReadableStream</a>&lt;<a href="#uint8array">Uint8Array</a>&gt;
77
- <div class="padding-left--md">
78
-
79
- </div>
80
-
81
- </div>
66
+ | Name | Type |
67
+ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
68
+ | data<sup>\*required</sup> | <a href="#arraybuffer">ArrayBuffer</a> &#124; <a href="#blob">Blob</a> &#124; <a href="#readablestream">ReadableStream</a>&lt;<a href="#uint8array">Uint8Array</a>&gt; |
82
69
 
83
70
  #### Methods
84
71
 
@@ -91,22 +78,15 @@ Represents an environment agnostic (browser vs node) abstraction layer for binar
91
78
 
92
79
  Returns the binary data in a form that conforms to the specified type.
93
80
 
94
- **Parameters**
95
-
96
- <div class="padding-left--md padding-bottom--md">
97
- <strong>type</strong>: <a href="#t">T</a>
98
- <div class="padding-left--md">
99
-
100
- The type of the data.
101
- Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
102
-
103
81
  </div>
104
82
 
105
- </div>
83
+ #### Parameters
106
84
 
107
- <!-- no returns -->
85
+ | Name | Type | Description |
86
+ | ------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
87
+ | type<sup>\*required</sup> | <a href="#t">T</a> | <p>The type of the data. Can be <code>text</code>, <code>json</code>, <code>array-buffer</code>, <code>blob</code>, <code>readable-stream</code>, <code>buffer</code> or <code>stream</code>.</p> |
108
88
 
109
- </div>
89
+ <!-- no returns -->
110
90
 
111
91
  </div>
112
92
 
@@ -117,19 +97,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
117
97
 
118
98
  <div class="padding-left--md">
119
99
 
120
- **Parameters**
121
-
122
- <div class="padding-left--md padding-bottom--md">
123
- <strong>data</strong>: <a href="#arraybuffer">ArrayBuffer</a> | <a href="#blob">Blob</a> | <a href="#readablestream">ReadableStream</a>&lt;<a href="#uint8array">Uint8Array</a>&gt; | <a href="#buffer">Buffer</a> | <a href="#readable">Readable</a>
124
- <div class="padding-left--md">
125
-
126
100
  </div>
127
101
 
128
- </div>
102
+ #### Parameters
129
103
 
130
- <!-- no returns -->
104
+ | Name | Type |
105
+ | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
106
+ | data<sup>\*required</sup> | <a href="#arraybuffer">ArrayBuffer</a> &#124; <a href="#blob">Blob</a> &#124; <a href="#readablestream">ReadableStream</a>&lt;<a href="#uint8array">Uint8Array</a>&gt; &#124; <a href="#buffer">Buffer</a> &#124; <a href="#readable">Readable</a> |
131
107
 
132
- </div>
108
+ <!-- no returns -->
133
109
 
134
110
  </div>
135
111
 
@@ -140,19 +116,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
140
116
 
141
117
  <div class="padding-left--md">
142
118
 
143
- **Parameters**
144
-
145
- <div class="padding-left--md padding-bottom--md">
146
- <strong>json</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
147
- <div class="padding-left--md">
148
-
149
119
  </div>
150
120
 
151
- </div>
121
+ #### Parameters
152
122
 
153
- <!-- no returns -->
123
+ | Name | Type |
124
+ | ------------------------- | ---------------------------------------------------------------------------------------- |
125
+ | json<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
154
126
 
155
- </div>
127
+ <!-- no returns -->
156
128
 
157
129
  </div>
158
130
 
@@ -163,19 +135,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
163
135
 
164
136
  <div class="padding-left--md">
165
137
 
166
- **Parameters**
167
-
168
- <div class="padding-left--md padding-bottom--md">
169
- <strong>text</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
170
- <div class="padding-left--md">
171
-
172
138
  </div>
173
139
 
174
- </div>
140
+ #### Parameters
175
141
 
176
- <!-- no returns -->
142
+ | Name | Type |
143
+ | ------------------------- | ----------------------------------------------------------------------------- |
144
+ | text<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
177
145
 
178
- </div>
146
+ <!-- no returns -->
179
147
 
180
148
  </div>
181
149
 
@@ -189,46 +157,25 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
189
157
 
190
158
  <div class="padding-left--md">
191
159
 
192
- **Parameters**
193
-
194
- <div class="padding-left--md padding-bottom--md">
195
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
196
- <div class="padding-left--md">
197
-
198
- </div>
199
-
200
- </div>
201
- <div class="padding-left--md padding-bottom--md">
202
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
203
- <div class="padding-left--md">
204
-
205
- </div>
160
+ #### Parameters
206
161
 
207
- </div>
162
+ | Name | Type |
163
+ | ---------------------------- | ---------------------------------------------------------------------------------------- |
164
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
165
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
208
166
 
209
167
  </div>
210
168
 
211
169
  #### Properties
212
170
 
213
- <div class="padding-left--md padding-bottom--md">
214
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
215
- <div class="padding-left--md">
216
-
217
- The error root cause.
218
-
219
- </div>
220
-
221
- </div>
222
-
223
- <div class="padding-left--md padding-bottom--md">
224
- <strong>name</strong>: "DataTypeError"
225
- <div class="padding-left--md">
226
-
227
- The error name.
228
-
229
- </div>
230
-
231
- </div>
171
+ | Name | Type | Description |
172
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
173
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
174
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
175
+ | name<sup>\*required</sup> | "DataTypeError" | The error name. |
176
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
177
+ | prepareStackTrace | Object | |
178
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
232
179
 
233
180
  ### PlatformHttpClient
234
181
 
@@ -245,7 +192,7 @@ Currently, only the requests to the Platform Services and the Serverless Functio
245
192
 
246
193
  <div class="padding-left--md">
247
194
 
248
- **Parameters**
195
+ <!-- no parameters -->
249
196
 
250
197
  </div>
251
198
 
@@ -267,26 +214,17 @@ when one of the following situations happen:
267
214
  - `HttpClientResponseError` - response status is considered invalid by the status validator,
268
215
  - `HttpClientAbortError` - request was aborted.
269
216
 
270
- **Parameters**
271
-
272
- <div class="padding-left--md padding-bottom--md">
273
- <strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt;
274
- <div class="padding-left--md">
275
-
276
- Options used to configure the request.
277
-
278
- </div>
279
-
280
217
  </div>
281
218
 
282
- #### Returns
219
+ #### Parameters
283
220
 
284
- <div class="padding-left--md">
285
- Promise&lt;HttpClientResponse&gt; A promise that resolves with the response object or rejects with an error.
221
+ | Name | Type | Description |
222
+ | ---------------------------- | ------------------------------------------------------------------------------------------ | -------------------------------------- |
223
+ | options<sup>\*required</sup> | <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt; | Options used to configure the request. |
286
224
 
287
- </div>
225
+ #### Returns
288
226
 
289
- </div>
227
+ Promise<HttpClientResponse> A promise that resolves with the response object or rejects with an error.
290
228
 
291
229
  </div>
292
230
 
@@ -302,39 +240,24 @@ Represents a situation when the request was aborted.
302
240
 
303
241
  <div class="padding-left--md">
304
242
 
305
- **Parameters**
243
+ #### Parameters
306
244
 
307
- <div class="padding-left--md padding-bottom--md">
308
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
309
- <div class="padding-left--md">
310
-
311
- </div>
312
-
313
- </div>
245
+ | Name | Type |
246
+ | -------------------------- | ---------------------------------------------------------------------------------------- |
247
+ | cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
314
248
 
315
249
  </div>
316
250
 
317
251
  #### Properties
318
252
 
319
- <div class="padding-left--md padding-bottom--md">
320
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
321
- <div class="padding-left--md">
322
-
323
- The error root cause.
324
-
325
- </div>
326
-
327
- </div>
328
-
329
- <div class="padding-left--md padding-bottom--md">
330
- <strong>name</strong>: "AbortError"
331
- <div class="padding-left--md">
332
-
333
- The error name.
334
-
335
- </div>
336
-
337
- </div>
253
+ | Name | Type | Description |
254
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
255
+ | cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
256
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
257
+ | name<sup>\*required</sup> | "AbortError" | The error name. |
258
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
259
+ | prepareStackTrace | Object | |
260
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
338
261
 
339
262
  ### PlatformHttpClientRequestError
340
263
 
@@ -348,39 +271,24 @@ Represents a situation when the request is invalid and cannot be sent.
348
271
 
349
272
  <div class="padding-left--md">
350
273
 
351
- **Parameters**
352
-
353
- <div class="padding-left--md padding-bottom--md">
354
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
355
- <div class="padding-left--md">
356
-
357
- </div>
274
+ #### Parameters
358
275
 
359
- </div>
276
+ | Name | Type |
277
+ | -------------------------- | ---------------------------------------------------------------------------------------- |
278
+ | cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
360
279
 
361
280
  </div>
362
281
 
363
282
  #### Properties
364
283
 
365
- <div class="padding-left--md padding-bottom--md">
366
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
367
- <div class="padding-left--md">
368
-
369
- The error root cause.
370
-
371
- </div>
372
-
373
- </div>
374
-
375
- <div class="padding-left--md padding-bottom--md">
376
- <strong>name</strong>: "RequestError"
377
- <div class="padding-left--md">
378
-
379
- The error name.
380
-
381
- </div>
382
-
383
- </div>
284
+ | Name | Type | Description |
285
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
286
+ | cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
287
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
288
+ | name<sup>\*required</sup> | "RequestError" | The error name. |
289
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
290
+ | prepareStackTrace | Object | |
291
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
384
292
 
385
293
  ### PlatformHttpClientResponse
386
294
 
@@ -394,17 +302,19 @@ Represents the response to a request.
394
302
 
395
303
  <div class="padding-left--md">
396
304
 
397
- **Parameters**
305
+ #### Parameters
398
306
 
399
- <div class="padding-left--md padding-bottom--md">
400
- <strong>response</strong>: <a href="#response">Response</a>
401
- <div class="padding-left--md">
307
+ | Name | Type |
308
+ | ----------------------------- | -------------------------------- |
309
+ | response<sup>\*required</sup> | <a href="#response">Response</a> |
402
310
 
403
311
  </div>
404
312
 
405
- </div>
313
+ #### Properties
406
314
 
407
- </div>
315
+ | Name | Type |
316
+ | ----------------------------- | -------------------------------- |
317
+ | response<sup>\*required</sup> | <a href="#response">Response</a> |
408
318
 
409
319
  #### Accessors
410
320
 
@@ -443,23 +353,15 @@ The URL of the response.
443
353
 
444
354
  Returns the response body in a form that conforms to the specified response body type.
445
355
 
446
- **Parameters**
447
-
448
- <div class="padding-left--md padding-bottom--md">
449
- <strong>responseBodyType</strong>: <a href="#t">T</a>
450
- <div class="padding-left--md">
451
-
452
- The type of the response body.
453
- Can be `text`, `json`, `binary`, `form-data`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
454
- The default response body type is `json`.
455
-
456
356
  </div>
457
357
 
458
- </div>
358
+ #### Parameters
459
359
 
460
- <!-- no returns -->
360
+ | Name | Type | Description |
361
+ | ------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
362
+ | responseBodyType<sup>\*required</sup> | <a href="#t">T</a> | <p>The type of the response body. Can be <code>text</code>, <code>json</code>, <code>binary</code>, <code>form-data</code>, <code>array-buffer</code>, <code>blob</code>, <code>readable-stream</code>, <code>buffer</code> or <code>stream</code>. The default response body type is <code>json</code>.</p> |
461
363
 
462
- </div>
364
+ <!-- no returns -->
463
365
 
464
366
  </div>
465
367
 
@@ -475,49 +377,25 @@ Represents a situation when the response status is considered invalid by the sta
475
377
 
476
378
  <div class="padding-left--md">
477
379
 
478
- **Parameters**
380
+ #### Parameters
479
381
 
480
- <div class="padding-left--md padding-bottom--md">
481
- <strong>response</strong>: <a href="#response">Response</a>
482
- <div class="padding-left--md">
483
-
484
- </div>
485
-
486
- </div>
382
+ | Name | Type |
383
+ | ----------------------------- | -------------------------------- |
384
+ | response<sup>\*required</sup> | <a href="#response">Response</a> |
487
385
 
488
386
  </div>
489
387
 
490
388
  #### Properties
491
389
 
492
- <div class="padding-left--md padding-bottom--md">
493
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
494
- <div class="padding-left--md">
495
-
496
- The error root cause.
497
-
498
- </div>
499
-
500
- </div>
501
-
502
- <div class="padding-left--md padding-bottom--md">
503
- <strong>name</strong>: "ResponseError"
504
- <div class="padding-left--md">
505
-
506
- The error name.
507
-
508
- </div>
509
-
510
- </div>
511
-
512
- <div class="padding-left--md padding-bottom--md">
513
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
514
- <div class="padding-left--md">
515
-
516
- The response.
517
-
518
- </div>
519
-
520
- </div>
390
+ | Name | Type | Description |
391
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
392
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
393
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
394
+ | name<sup>\*required</sup> | "ResponseError" | The error name. |
395
+ | response<sup>\*required</sup> | <a href="#httpclientresponse">HttpClientResponse</a> | The response. |
396
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
397
+ | prepareStackTrace | Object | |
398
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
521
399
 
522
400
  ### PlatformUnsupportedOperationError
523
401
 
@@ -529,46 +407,25 @@ The response.
529
407
 
530
408
  <div class="padding-left--md">
531
409
 
532
- **Parameters**
533
-
534
- <div class="padding-left--md padding-bottom--md">
535
- <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
536
- <div class="padding-left--md">
537
-
538
- </div>
539
-
540
- </div>
541
- <div class="padding-left--md padding-bottom--md">
542
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
543
- <div class="padding-left--md">
544
-
545
- </div>
410
+ #### Parameters
546
411
 
547
- </div>
412
+ | Name | Type |
413
+ | ---------------------------- | ---------------------------------------------------------------------------------------- |
414
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
415
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
548
416
 
549
417
  </div>
550
418
 
551
419
  #### Properties
552
420
 
553
- <div class="padding-left--md padding-bottom--md">
554
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
555
- <div class="padding-left--md">
556
-
557
- The error root cause.
558
-
559
- </div>
560
-
561
- </div>
562
-
563
- <div class="padding-left--md padding-bottom--md">
564
- <strong>name</strong>: "UnsupportedOperationError"
565
- <div class="padding-left--md">
566
-
567
- The error name.
568
-
569
- </div>
570
-
571
- </div>
421
+ | Name | Type | Description |
422
+ | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
423
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
424
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
425
+ | name<sup>\*required</sup> | "UnsupportedOperationError" | The error name. |
426
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
427
+ | prepareStackTrace | Object | |
428
+ | stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
572
429
 
573
430
  ## Interfaces
574
431
 
@@ -580,15 +437,9 @@ Represents a controller object that allows to abort one or more requests as and
580
437
 
581
438
  #### Properties
582
439
 
583
- <div class="padding-left--md padding-bottom--md">
584
- <strong>signal</strong>: <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a>
585
- <div class="padding-left--md">
586
-
587
- Returns an AbortSignal object instance, which can be used to communicate with a request.
588
-
589
- </div>
590
-
591
- </div>
440
+ | Name | Type | Description |
441
+ | --------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
442
+ | signal<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a> | Returns an AbortSignal object instance, which can be used to communicate with a request. |
592
443
 
593
444
  #### Methods
594
445
 
@@ -601,14 +452,14 @@ Returns an AbortSignal object instance, which can be used to communicate with a
601
452
 
602
453
  Aborts a request before it has completed.
603
454
 
604
- **Parameters**
455
+ </div>
456
+
457
+ <!-- no parameters -->
605
458
 
606
459
  <!-- no returns -->
607
460
 
608
461
  </div>
609
462
 
610
- </div>
611
-
612
463
  ### AbortSignal
613
464
 
614
465
  <!-- default child "Interface" -->
@@ -617,33 +468,11 @@ Represents a signal object that allows to communicate with the request and abort
617
468
 
618
469
  #### Properties
619
470
 
620
- <div class="padding-left--md padding-bottom--md">
621
- <strong>aborted</strong>: boolean
622
- <div class="padding-left--md">
623
-
624
- A flag indicating whether the requests the signal is communicating with are aborted.
625
-
626
- </div>
627
-
628
- </div>
629
-
630
- <div class="padding-left--md padding-bottom--md">
631
- <strong>onabort</strong>: null | Object
632
- <div class="padding-left--md">
633
-
634
- Invoked when the requests the signal is communicating with are aborted.
635
-
636
- </div>
637
-
638
- </div>
639
-
640
- <div class="padding-left--md padding-bottom--md">
641
- <strong>reason</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
642
- <div class="padding-left--md">
643
-
644
- </div>
645
-
646
- </div>
471
+ | Name | Type | Description |
472
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
473
+ | aborted<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Boolean">boolean</a> | A flag indicating whether the requests the signal is communicating with are aborted. |
474
+ | onabort<sup>\*required</sup> | null &#124; Object | Invoked when the requests the signal is communicating with are aborted. |
475
+ | reason<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | |
647
476
 
648
477
  #### Methods
649
478
 
@@ -654,11 +483,11 @@ Invoked when the requests the signal is communicating with are aborted.
654
483
 
655
484
  <div class="padding-left--md">
656
485
 
657
- **Parameters**
486
+ </div>
658
487
 
659
- <!-- no returns -->
488
+ <!-- no parameters -->
660
489
 
661
- </div>
490
+ <!-- no returns -->
662
491
 
663
492
  </div>
664
493
 
@@ -668,29 +497,20 @@ Invoked when the requests the signal is communicating with are aborted.
668
497
 
669
498
  #### Properties
670
499
 
671
- <div class="padding-left--md padding-bottom--md">
672
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
673
- <div class="padding-left--md">
500
+ | Name | Type |
501
+ | ---------------------------- | ---------------------------------------------------------------------------------------- |
502
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
503
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
504
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
505
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
674
506
 
675
- </div>
507
+ ### Binary
676
508
 
677
- </div>
509
+ <!-- default child "Interface" -->
678
510
 
679
- <div class="padding-left--md padding-bottom--md">
680
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
681
- <div class="padding-left--md">
511
+ Represents an environment agnostic (browser vs node) abstraction layer for binary data.
682
512
 
683
- </div>
684
-
685
- </div>
686
-
687
- ### Binary
688
-
689
- <!-- default child "Interface" -->
690
-
691
- Represents an environment agnostic (browser vs node) abstraction layer for binary data.
692
-
693
- #### Methods
513
+ #### Methods
694
514
 
695
515
  ##### get
696
516
 
@@ -701,22 +521,15 @@ Represents an environment agnostic (browser vs node) abstraction layer for binar
701
521
 
702
522
  Returns the binary data in a form that conforms to the specified type.
703
523
 
704
- **Parameters**
705
-
706
- <div class="padding-left--md padding-bottom--md">
707
- <strong>type</strong>: <a href="#t">T</a>
708
- <div class="padding-left--md">
709
-
710
- The type of the data.
711
- Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
712
-
713
524
  </div>
714
525
 
715
- </div>
526
+ #### Parameters
716
527
 
717
- <!-- no returns -->
528
+ | Name | Type | Description |
529
+ | ------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
530
+ | type<sup>\*required</sup> | <a href="#t">T</a> | <p>The type of the data. Can be <code>text</code>, <code>json</code>, <code>array-buffer</code>, <code>blob</code>, <code>readable-stream</code>, <code>buffer</code> or <code>stream</code>.</p> |
718
531
 
719
- </div>
532
+ <!-- no returns -->
720
533
 
721
534
  </div>
722
535
 
@@ -728,57 +541,13 @@ Represents an binary field.
728
541
 
729
542
  #### Properties
730
543
 
731
- <div class="padding-left--md padding-bottom--md">
732
- <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
733
- <div class="padding-left--md">
734
-
735
- The content type of the data contained in `value`.
736
- The default content type for the binary is 'application/octet-stream'.
737
-
738
- </div>
739
-
740
- </div>
741
-
742
- <div class="padding-left--md padding-bottom--md">
743
- <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
744
- <div class="padding-left--md">
745
-
746
- The filename reported to the server.
747
- The default filename for the binary is 'binary'.
748
-
749
- </div>
750
-
751
- </div>
752
-
753
- <div class="padding-left--md padding-bottom--md">
754
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
755
- <div class="padding-left--md">
756
-
757
- The name of the field.
758
-
759
- </div>
760
-
761
- </div>
762
-
763
- <div class="padding-left--md padding-bottom--md">
764
- <strong>type</strong>: "binary"
765
- <div class="padding-left--md">
766
-
767
- A binary field type discriminator.
768
-
769
- </div>
770
-
771
- </div>
772
-
773
- <div class="padding-left--md padding-bottom--md">
774
- <strong>value</strong>: <a href="#arraybuffer">ArrayBuffer</a> | <a href="#blob">Blob</a> | <a href="#buffer">Buffer</a> | <a href="#readable">Readable</a> | <a href="#binary">Binary</a> | <a href="#readablestream">ReadableStream</a>&lt;<a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>&gt; | <a href="#file">File</a>
775
- <div class="padding-left--md">
776
-
777
- The field's value.
778
-
779
- </div>
780
-
781
- </div>
544
+ | Name | Type | Description |
545
+ | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
546
+ | contentType | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | <p>The content type of the data contained in <code>value</code>. The default content type for the binary is 'application/octet-stream'.</p> |
547
+ | filename | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | <p>The filename reported to the server. The default filename for the binary is 'binary'.</p> |
548
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
549
+ | type<sup>\*required</sup> | "binary" | A binary field type discriminator. |
550
+ | value<sup>\*required</sup> | <a href="#arraybuffer">ArrayBuffer</a> &#124; <a href="#blob">Blob</a> &#124; <a href="#buffer">Buffer</a> &#124; <a href="#readable">Readable</a> &#124; <a href="#binary">Binary</a> &#124; <a href="#readablestream">ReadableStream</a>&lt;<a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>&gt; &#124; <a href="#file">File</a> | The field's value. |
782
551
 
783
552
  ### BinaryFormDataResponseField
784
553
 
@@ -786,45 +555,13 @@ The field's value.
786
555
 
787
556
  #### Properties
788
557
 
789
- <div class="padding-left--md padding-bottom--md">
790
- <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
791
- <div class="padding-left--md">
792
-
793
- </div>
794
-
795
- </div>
796
-
797
- <div class="padding-left--md padding-bottom--md">
798
- <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
799
- <div class="padding-left--md">
800
-
801
- </div>
802
-
803
- </div>
804
-
805
- <div class="padding-left--md padding-bottom--md">
806
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
807
- <div class="padding-left--md">
808
-
809
- </div>
810
-
811
- </div>
812
-
813
- <div class="padding-left--md padding-bottom--md">
814
- <strong>type</strong>: "binary"
815
- <div class="padding-left--md">
816
-
817
- </div>
818
-
819
- </div>
820
-
821
- <div class="padding-left--md padding-bottom--md">
822
- <strong>value</strong>: <a href="#binary">Binary</a>
823
- <div class="padding-left--md">
824
-
825
- </div>
826
-
827
- </div>
558
+ | Name | Type |
559
+ | -------------------------------- | ----------------------------------------------------------------------------- |
560
+ | contentType<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
561
+ | filename<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
562
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
563
+ | type<sup>\*required</sup> | "binary" |
564
+ | value<sup>\*required</sup> | <a href="#binary">Binary</a> |
828
565
 
829
566
  ### DataTypeError
830
567
 
@@ -832,25 +569,12 @@ The field's value.
832
569
 
833
570
  #### Properties
834
571
 
835
- <div class="padding-left--md padding-bottom--md">
836
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
837
- <div class="padding-left--md">
838
-
839
- The error root cause.
840
-
841
- </div>
842
-
843
- </div>
844
-
845
- <div class="padding-left--md padding-bottom--md">
846
- <strong>name</strong>: "DataTypeError"
847
- <div class="padding-left--md">
848
-
849
- The error name.
850
-
851
- </div>
852
-
853
- </div>
572
+ | Name | Type | Description |
573
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
574
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
575
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
576
+ | name<sup>\*required</sup> | "DataTypeError" | The error name. |
577
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
854
578
 
855
579
  ### Headers
856
580
 
@@ -885,26 +609,17 @@ when one of the following situations happen:
885
609
  - `HttpClientResponseError` - response status is considered invalid by the status validator,
886
610
  - `HttpClientAbortError` - request was aborted.
887
611
 
888
- **Parameters**
889
-
890
- <div class="padding-left--md padding-bottom--md">
891
- <strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt;
892
- <div class="padding-left--md">
893
-
894
- Options used to configure the request.
895
-
896
- </div>
897
-
898
612
  </div>
899
613
 
900
- #### Returns
614
+ #### Parameters
901
615
 
902
- <div class="padding-left--md">
903
- Promise&lt;HttpClientResponse&gt; A promise that resolves with the response object or rejects with an error.
616
+ | Name | Type | Description |
617
+ | ---------------------------- | ------------------------------------------------------------------------------------------ | -------------------------------------- |
618
+ | options<sup>\*required</sup> | <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt; | Options used to configure the request. |
904
619
 
905
- </div>
620
+ #### Returns
906
621
 
907
- </div>
622
+ Promise<HttpClientResponse> A promise that resolves with the response object or rejects with an error.
908
623
 
909
624
  </div>
910
625
 
@@ -916,25 +631,12 @@ Represents a situation when the request was aborted.
916
631
 
917
632
  #### Properties
918
633
 
919
- <div class="padding-left--md padding-bottom--md">
920
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
921
- <div class="padding-left--md">
922
-
923
- The error root cause.
924
-
925
- </div>
926
-
927
- </div>
928
-
929
- <div class="padding-left--md padding-bottom--md">
930
- <strong>name</strong>: "AbortError"
931
- <div class="padding-left--md">
932
-
933
- The error name.
934
-
935
- </div>
936
-
937
- </div>
634
+ | Name | Type | Description |
635
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
636
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
637
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
638
+ | name<sup>\*required</sup> | "AbortError" | The error name. |
639
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
938
640
 
939
641
  ### HttpClientNetworkError
940
642
 
@@ -944,25 +646,12 @@ Represents a situation when a network error occurred.
944
646
 
945
647
  #### Properties
946
648
 
947
- <div class="padding-left--md padding-bottom--md">
948
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
949
- <div class="padding-left--md">
950
-
951
- The error root cause.
952
-
953
- </div>
954
-
955
- </div>
956
-
957
- <div class="padding-left--md padding-bottom--md">
958
- <strong>name</strong>: "NetworkError"
959
- <div class="padding-left--md">
960
-
961
- The error name.
962
-
963
- </div>
964
-
965
- </div>
649
+ | Name | Type | Description |
650
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
651
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
652
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
653
+ | name<sup>\*required</sup> | "NetworkError" | The error name. |
654
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
966
655
 
967
656
  ### HttpClientRequestError
968
657
 
@@ -972,25 +661,12 @@ Represents a situation when the request is invalid and cannot be sent.
972
661
 
973
662
  #### Properties
974
663
 
975
- <div class="padding-left--md padding-bottom--md">
976
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
977
- <div class="padding-left--md">
978
-
979
- The error root cause.
980
-
981
- </div>
982
-
983
- </div>
984
-
985
- <div class="padding-left--md padding-bottom--md">
986
- <strong>name</strong>: "RequestError"
987
- <div class="padding-left--md">
988
-
989
- The error name.
990
-
991
- </div>
992
-
993
- </div>
664
+ | Name | Type | Description |
665
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
666
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
667
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
668
+ | name<sup>\*required</sup> | "RequestError" | The error name. |
669
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
994
670
 
995
671
  ### HttpClientRequestOptions
996
672
 
@@ -1000,80 +676,14 @@ Represents the options used to configure the request.
1000
676
 
1001
677
  #### Properties
1002
678
 
1003
- <div class="padding-left--md padding-bottom--md">
1004
- <strong>abortSignal</strong>: <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a>
1005
- <div class="padding-left--md">
1006
-
1007
- An AbortSignal instance that can be used to cancel the request.
1008
-
1009
- </div>
1010
-
1011
- </div>
1012
-
1013
- <div class="padding-left--md padding-bottom--md">
1014
- <strong>body</strong>: <a href="#requestbodytypes">RequestBodyTypes</a>&lt;<a href="#t">T</a>&gt;
1015
- <div class="padding-left--md">
1016
-
1017
- A request body that will be send along with the request.
1018
- The structure of the request body needs to conform to the specified request body type.
1019
-
1020
- </div>
1021
-
1022
- </div>
1023
-
1024
- <div class="padding-left--md padding-bottom--md">
1025
- <strong>headers</strong>: <a href="#headers">Headers</a>
1026
- <div class="padding-left--md">
1027
-
1028
- The request headers.
1029
-
1030
- </div>
1031
-
1032
- </div>
1033
-
1034
- <div class="padding-left--md padding-bottom--md">
1035
- <strong>method</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1036
- <div class="padding-left--md">
1037
-
1038
- The request method, e.g. `GET`, `POST`.
1039
-
1040
- </div>
1041
-
1042
- </div>
1043
-
1044
- <div class="padding-left--md padding-bottom--md">
1045
- <strong>requestBodyType</strong>: <a href="#t">T</a>
1046
- <div class="padding-left--md">
1047
-
1048
- The type of the request body. Can be `text`, `json`, `binary` or `form-data`.
1049
- The default request body type is `json`.
1050
-
1051
- </div>
1052
-
1053
- </div>
1054
-
1055
- <div class="padding-left--md padding-bottom--md">
1056
- <strong>statusValidator</strong>: <a href="#statusvalidator">StatusValidator</a>
1057
- <div class="padding-left--md">
1058
-
1059
- A custom status validator function.
1060
- If the status validator function returns `true` the returned promise resolves with the `HttpClientResponse`
1061
- Otherwise the promise rejects with the `StatusError`.
1062
- The default status validator function considers the `2xx` status codes as valid.
1063
-
1064
- </div>
1065
-
1066
- </div>
1067
-
1068
- <div class="padding-left--md padding-bottom--md">
1069
- <strong>url</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1070
- <div class="padding-left--md">
1071
-
1072
- The URL of the resource to fetch.
1073
-
1074
- </div>
1075
-
1076
- </div>
679
+ | Name | Type | Description |
680
+ | ------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
681
+ | body | <a href="#requestbodytypes">RequestBodyTypes</a>&lt;<a href="#t">T</a>&gt; | <p>A request body that will be send along with the request. The structure of the request body needs to conform to the specified request body type.</p> |
682
+ | headers | <a href="#headers">Headers</a> | The request headers. |
683
+ | method | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The request method, e.g. <code>GET</code>, <code>POST</code>. |
684
+ | requestBodyType | <a href="#t">T</a> | <p>The type of the request body. Can be <code>text</code>, <code>json</code>, <code>binary</code> or <code>form-data</code>. The default request body type is <code>json</code>.</p> |
685
+ | statusValidator | <a href="#statusvalidator">StatusValidator</a> | <p>A custom status validator function. If the status validator function returns <code>true</code> the returned promise resolves with the <code>HttpClientResponse</code> Otherwise the promise rejects with the <code>StatusError</code>. The default status validator function considers the <code>2xx</code> status codes as valid.</p> |
686
+ | url<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The URL of the resource to fetch. |
1077
687
 
1078
688
  ### HttpClientResponse
1079
689
 
@@ -1083,45 +693,12 @@ Represents the response to a request.
1083
693
 
1084
694
  #### Properties
1085
695
 
1086
- <div class="padding-left--md padding-bottom--md">
1087
- <strong>headers</strong>: <a href="#headers">Headers</a>
1088
- <div class="padding-left--md">
1089
-
1090
- The response headers.
1091
-
1092
- </div>
1093
-
1094
- </div>
1095
-
1096
- <div class="padding-left--md padding-bottom--md">
1097
- <strong>status</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
1098
- <div class="padding-left--md">
1099
-
1100
- The status code of the response.
1101
-
1102
- </div>
1103
-
1104
- </div>
1105
-
1106
- <div class="padding-left--md padding-bottom--md">
1107
- <strong>statusText</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1108
- <div class="padding-left--md">
1109
-
1110
- The status message corresponding to the status code.
1111
-
1112
- </div>
1113
-
1114
- </div>
1115
-
1116
- <div class="padding-left--md padding-bottom--md">
1117
- <strong>url</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1118
- <div class="padding-left--md">
1119
-
1120
- The URL of the response.
1121
-
1122
- </div>
1123
-
1124
- </div>
696
+ | Name | Type | Description |
697
+ | ------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------- |
698
+ | headers<sup>\*required</sup> | <a href="#headers">Headers</a> | The response headers. |
699
+ | status<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | The status code of the response. |
700
+ | statusText<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The status message corresponding to the status code. |
701
+ | url<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The URL of the response. |
1125
702
 
1126
703
  #### Methods
1127
704
 
@@ -1134,23 +711,15 @@ The URL of the response.
1134
711
 
1135
712
  Returns the response body in a form that conforms to the specified response body type.
1136
713
 
1137
- **Parameters**
1138
-
1139
- <div class="padding-left--md padding-bottom--md">
1140
- <strong>responseBodyType</strong>: <a href="#t">T</a>
1141
- <div class="padding-left--md">
1142
-
1143
- The type of the response body.
1144
- Can be `text`, `json`, `binary`, `form-data`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
1145
- The default response body type is `json`.
1146
-
1147
714
  </div>
1148
715
 
1149
- </div>
716
+ #### Parameters
1150
717
 
1151
- <!-- no returns -->
718
+ | Name | Type | Description |
719
+ | ---------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
720
+ | responseBodyType | <a href="#t">T</a> | <p>The type of the response body. Can be <code>text</code>, <code>json</code>, <code>binary</code>, <code>form-data</code>, <code>array-buffer</code>, <code>blob</code>, <code>readable-stream</code>, <code>buffer</code> or <code>stream</code>. The default response body type is <code>json</code>.</p> |
1152
721
 
1153
- </div>
722
+ <!-- no returns -->
1154
723
 
1155
724
  </div>
1156
725
 
@@ -1162,35 +731,13 @@ Represents a situation when the response status is considered invalid by the sta
1162
731
 
1163
732
  #### Properties
1164
733
 
1165
- <div class="padding-left--md padding-bottom--md">
1166
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1167
- <div class="padding-left--md">
1168
-
1169
- The error root cause.
1170
-
1171
- </div>
1172
-
1173
- </div>
1174
-
1175
- <div class="padding-left--md padding-bottom--md">
1176
- <strong>name</strong>: "ResponseError"
1177
- <div class="padding-left--md">
1178
-
1179
- The error name.
1180
-
1181
- </div>
1182
-
1183
- </div>
1184
-
1185
- <div class="padding-left--md padding-bottom--md">
1186
- <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
1187
- <div class="padding-left--md">
1188
-
1189
- The response.
1190
-
1191
- </div>
1192
-
1193
- </div>
734
+ | Name | Type | Description |
735
+ | ----------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
736
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
737
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
738
+ | name<sup>\*required</sup> | "ResponseError" | The error name. |
739
+ | response<sup>\*required</sup> | <a href="#httpclientresponse">HttpClientResponse</a> | The response. |
740
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
1194
741
 
1195
742
  ### JsonFormDataRequestField
1196
743
 
@@ -1200,57 +747,13 @@ Represents a JSON field.
1200
747
 
1201
748
  #### Properties
1202
749
 
1203
- <div class="padding-left--md padding-bottom--md">
1204
- <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1205
- <div class="padding-left--md">
1206
-
1207
- The content type of the data contained in `value`.
1208
- The default content type for the JSON is 'application/json'.
1209
-
1210
- </div>
1211
-
1212
- </div>
1213
-
1214
- <div class="padding-left--md padding-bottom--md">
1215
- <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1216
- <div class="padding-left--md">
1217
-
1218
- The filename reported to the server.
1219
- The default filename for the JSON is 'json'.
1220
-
1221
- </div>
1222
-
1223
- </div>
1224
-
1225
- <div class="padding-left--md padding-bottom--md">
1226
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1227
- <div class="padding-left--md">
1228
-
1229
- The name of the field.
1230
-
1231
- </div>
1232
-
1233
- </div>
1234
-
1235
- <div class="padding-left--md padding-bottom--md">
1236
- <strong>type</strong>: "json"
1237
- <div class="padding-left--md">
1238
-
1239
- A JSON field type discriminator.
1240
-
1241
- </div>
1242
-
1243
- </div>
1244
-
1245
- <div class="padding-left--md padding-bottom--md">
1246
- <strong>value</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1247
- <div class="padding-left--md">
1248
-
1249
- The field's value.
1250
-
1251
- </div>
1252
-
1253
- </div>
750
+ | Name | Type | Description |
751
+ | -------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
752
+ | contentType | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | <p>The content type of the data contained in <code>value</code>. The default content type for the JSON is 'application/json'.</p> |
753
+ | filename | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | <p>The filename reported to the server. The default filename for the JSON is 'json'.</p> |
754
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
755
+ | type<sup>\*required</sup> | "json" | A JSON field type discriminator. |
756
+ | value<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The field's value. |
1254
757
 
1255
758
  ### StatusValidator
1256
759
 
@@ -1264,35 +767,11 @@ Represents a plain text field. No filename and content type is set.
1264
767
 
1265
768
  #### Properties
1266
769
 
1267
- <div class="padding-left--md padding-bottom--md">
1268
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1269
- <div class="padding-left--md">
1270
-
1271
- The name of the field.
1272
-
1273
- </div>
1274
-
1275
- </div>
1276
-
1277
- <div class="padding-left--md padding-bottom--md">
1278
- <strong>type</strong>: "text"
1279
- <div class="padding-left--md">
1280
-
1281
- A plain text field type discriminator.
1282
-
1283
- </div>
1284
-
1285
- </div>
1286
-
1287
- <div class="padding-left--md padding-bottom--md">
1288
- <strong>value</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1289
- <div class="padding-left--md">
1290
-
1291
- The field's value.
1292
-
1293
- </div>
1294
-
1295
- </div>
770
+ | Name | Type | Description |
771
+ | -------------------------- | ----------------------------------------------------------------------------- | -------------------------------------- |
772
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
773
+ | type<sup>\*required</sup> | "text" | A plain text field type discriminator. |
774
+ | value<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The field's value. |
1296
775
 
1297
776
  ### TextFormDataResponseField
1298
777
 
@@ -1300,29 +779,11 @@ The field's value.
1300
779
 
1301
780
  #### Properties
1302
781
 
1303
- <div class="padding-left--md padding-bottom--md">
1304
- <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1305
- <div class="padding-left--md">
1306
-
1307
- </div>
1308
-
1309
- </div>
1310
-
1311
- <div class="padding-left--md padding-bottom--md">
1312
- <strong>type</strong>: "text"
1313
- <div class="padding-left--md">
1314
-
1315
- </div>
1316
-
1317
- </div>
1318
-
1319
- <div class="padding-left--md padding-bottom--md">
1320
- <strong>value</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1321
- <div class="padding-left--md">
1322
-
1323
- </div>
1324
-
1325
- </div>
782
+ | Name | Type |
783
+ | -------------------------- | ----------------------------------------------------------------------------- |
784
+ | name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
785
+ | type<sup>\*required</sup> | "text" |
786
+ | value<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
1326
787
 
1327
788
  ### UnsupportedOperationError
1328
789
 
@@ -1330,25 +791,12 @@ The field's value.
1330
791
 
1331
792
  #### Properties
1332
793
 
1333
- <div class="padding-left--md padding-bottom--md">
1334
- <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1335
- <div class="padding-left--md">
1336
-
1337
- The error root cause.
1338
-
1339
- </div>
1340
-
1341
- </div>
1342
-
1343
- <div class="padding-left--md padding-bottom--md">
1344
- <strong>name</strong>: "UnsupportedOperationError"
1345
- <div class="padding-left--md">
1346
-
1347
- The error name.
1348
-
1349
- </div>
1350
-
1351
- </div>
794
+ | Name | Type | Description |
795
+ | ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
796
+ | cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
797
+ | message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
798
+ | name<sup>\*required</sup> | "UnsupportedOperationError" | The error name. |
799
+ | stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
1352
800
 
1353
801
  ## Variables
1354
802