@dynatrace-sdk/http-client 0.4.4

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +3 -0
  3. package/cjs/index.js +455 -0
  4. package/docs/DOCS.md +1813 -0
  5. package/dynatrace-metadata.json +5 -0
  6. package/esm/index.js +435 -0
  7. package/package.json +10 -0
  8. package/types/index.d.ts +1 -0
  9. package/types/packages/http-client/src/index.d.ts +2 -0
  10. package/types/packages/http-client/src/lib/platform/abort-controller.d.ts +6 -0
  11. package/types/packages/http-client/src/lib/platform/abort-signal.d.ts +6 -0
  12. package/types/packages/http-client/src/lib/platform/apply-content-type-header.d.ts +2 -0
  13. package/types/packages/http-client/src/lib/platform/base-error.d.ts +5 -0
  14. package/types/packages/http-client/src/lib/platform/binary.d.ts +13 -0
  15. package/types/packages/http-client/src/lib/platform/data-type-error.d.ts +6 -0
  16. package/types/packages/http-client/src/lib/platform/decode-response-body.d.ts +3 -0
  17. package/types/packages/http-client/src/lib/platform/default-status-validator.d.ts +2 -0
  18. package/types/packages/http-client/src/lib/platform/encode-request-body.d.ts +2 -0
  19. package/types/packages/http-client/src/lib/platform/http-client-abort-error.d.ts +7 -0
  20. package/types/packages/http-client/src/lib/platform/http-client-request-error.d.ts +7 -0
  21. package/types/packages/http-client/src/lib/platform/http-client-response-error-serializer.d.ts +1 -0
  22. package/types/packages/http-client/src/lib/platform/http-client-response-error.d.ts +8 -0
  23. package/types/packages/http-client/src/lib/platform/http-client-response.d.ts +10 -0
  24. package/types/packages/http-client/src/lib/platform/http-client.d.ts +5 -0
  25. package/types/packages/http-client/src/lib/platform/index.d.ts +11 -0
  26. package/types/packages/http-client/src/lib/platform/unsupported-operation-error.d.ts +6 -0
  27. package/types/packages/http-client/src/lib/types/abort-controller.d.ts +14 -0
  28. package/types/packages/http-client/src/lib/types/abort-signal.d.ts +15 -0
  29. package/types/packages/http-client/src/lib/types/base-error.d.ts +4 -0
  30. package/types/packages/http-client/src/lib/types/binary.d.ts +15 -0
  31. package/types/packages/http-client/src/lib/types/data-type-error.d.ts +14 -0
  32. package/types/packages/http-client/src/lib/types/data-types.d.ts +36 -0
  33. package/types/packages/http-client/src/lib/types/form-data-request-body.d.ts +83 -0
  34. package/types/packages/http-client/src/lib/types/form-data-response-body.d.ts +15 -0
  35. package/types/packages/http-client/src/lib/types/headers.d.ts +6 -0
  36. package/types/packages/http-client/src/lib/types/http-client-abort-error.d.ts +14 -0
  37. package/types/packages/http-client/src/lib/types/http-client-network-error.d.ts +14 -0
  38. package/types/packages/http-client/src/lib/types/http-client-request-error.d.ts +14 -0
  39. package/types/packages/http-client/src/lib/types/http-client-request-options.d.ts +42 -0
  40. package/types/packages/http-client/src/lib/types/http-client-response-error.d.ts +19 -0
  41. package/types/packages/http-client/src/lib/types/http-client-response.d.ts +33 -0
  42. package/types/packages/http-client/src/lib/types/http-client.d.ts +24 -0
  43. package/types/packages/http-client/src/lib/types/index.d.ts +20 -0
  44. package/types/packages/http-client/src/lib/types/request-body-types.d.ts +26 -0
  45. package/types/packages/http-client/src/lib/types/response-body-types.d.ts +46 -0
  46. package/types/packages/http-client/src/lib/types/status-validator.d.ts +7 -0
  47. package/types/packages/http-client/src/lib/types/unsupported-operation-error.d.ts +14 -0
package/docs/DOCS.md ADDED
@@ -0,0 +1,1813 @@
1
+ # http-client
2
+
3
+ SDK package version **0.4.4**
4
+
5
+ ```bash
6
+ npm install @dynatrace-sdk/http-client
7
+ ```
8
+
9
+
10
+
11
+ ## Classes
12
+
13
+ ### PlatformBaseError
14
+ <!-- default child "Class" -->
15
+
16
+
17
+
18
+ #### Constructors
19
+
20
+ ##### new PlatformBaseError(message,cause?)
21
+ <div class="padding-left--md">
22
+
23
+ **Parameters**
24
+
25
+ <div class="padding-left--md padding-bottom--md">
26
+ <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
27
+ <div class="padding-left--md">
28
+
29
+
30
+
31
+ </div>
32
+
33
+
34
+
35
+ </div>
36
+
37
+ <div class="padding-left--md padding-bottom--md">
38
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
39
+ <div class="padding-left--md">
40
+
41
+
42
+
43
+ </div>
44
+
45
+
46
+
47
+ </div>
48
+
49
+
50
+
51
+ </div>
52
+
53
+
54
+
55
+ #### Properties
56
+
57
+ <div class="padding-left--md padding-bottom--md">
58
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
59
+ <div class="padding-left--md">
60
+
61
+
62
+
63
+ </div>
64
+
65
+
66
+
67
+ </div>
68
+
69
+
70
+
71
+ ### PlatformBinary
72
+ <!-- default child "Class" -->
73
+ Represents an environment agnostic (browser vs node) abstraction layer for binary data.
74
+
75
+
76
+ #### Properties
77
+
78
+ <div class="padding-left--md padding-bottom--md">
79
+ <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;
80
+ <div class="padding-left--md">
81
+
82
+
83
+
84
+ </div>
85
+
86
+
87
+
88
+ </div>
89
+
90
+
91
+ #### Methods
92
+
93
+
94
+ ##### get
95
+
96
+ <div class="padding-bottom--md">
97
+ <strong>get(type): <a href="#datatypes">DataTypes</a>&lt;<a href="#t">T</a>&gt;</strong>
98
+
99
+ <div class="padding-left--md">
100
+
101
+ Returns the binary data in a form that conforms to the specified type.
102
+
103
+
104
+ **Parameters**
105
+
106
+ <div class="padding-left--md padding-bottom--md">
107
+ <strong>type</strong>: <a href="#t">T</a>
108
+ <div class="padding-left--md">
109
+
110
+ The type of the data.
111
+ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
112
+
113
+ </div>
114
+
115
+
116
+
117
+ </div>
118
+
119
+
120
+
121
+ <!-- no returns -->
122
+
123
+
124
+
125
+ </div>
126
+
127
+
128
+
129
+ </div>
130
+
131
+
132
+
133
+
134
+ ##### from
135
+
136
+ <div class="padding-bottom--md">
137
+ <strong>from(data): <a href="#binary">Binary</a></strong>
138
+
139
+ <div class="padding-left--md">
140
+
141
+
142
+
143
+
144
+ **Parameters**
145
+
146
+ <div class="padding-left--md padding-bottom--md">
147
+ <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>
148
+ <div class="padding-left--md">
149
+
150
+
151
+
152
+ </div>
153
+
154
+
155
+
156
+ </div>
157
+
158
+
159
+
160
+ <!-- no returns -->
161
+
162
+
163
+
164
+ </div>
165
+
166
+
167
+
168
+ </div>
169
+
170
+
171
+
172
+
173
+ ##### fromJson
174
+
175
+ <div class="padding-bottom--md">
176
+ <strong>fromJson(json): <a href="#binary">Binary</a></strong>
177
+
178
+ <div class="padding-left--md">
179
+
180
+
181
+
182
+
183
+ **Parameters**
184
+
185
+ <div class="padding-left--md padding-bottom--md">
186
+ <strong>json</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
187
+ <div class="padding-left--md">
188
+
189
+
190
+
191
+ </div>
192
+
193
+
194
+
195
+ </div>
196
+
197
+
198
+
199
+ <!-- no returns -->
200
+
201
+
202
+
203
+ </div>
204
+
205
+
206
+
207
+ </div>
208
+
209
+
210
+
211
+
212
+ ##### fromText
213
+
214
+ <div class="padding-bottom--md">
215
+ <strong>fromText(text): <a href="#binary">Binary</a></strong>
216
+
217
+ <div class="padding-left--md">
218
+
219
+
220
+
221
+
222
+ **Parameters**
223
+
224
+ <div class="padding-left--md padding-bottom--md">
225
+ <strong>text</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
226
+ <div class="padding-left--md">
227
+
228
+
229
+
230
+ </div>
231
+
232
+
233
+
234
+ </div>
235
+
236
+
237
+
238
+ <!-- no returns -->
239
+
240
+
241
+
242
+ </div>
243
+
244
+
245
+
246
+ </div>
247
+
248
+
249
+
250
+
251
+ ### PlatformDataTypeError
252
+ <!-- default child "Class" -->
253
+
254
+
255
+
256
+ #### Constructors
257
+
258
+ ##### new PlatformDataTypeError(message,cause?)
259
+ <div class="padding-left--md">
260
+
261
+ **Parameters**
262
+
263
+ <div class="padding-left--md padding-bottom--md">
264
+ <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
265
+ <div class="padding-left--md">
266
+
267
+
268
+
269
+ </div>
270
+
271
+
272
+
273
+ </div>
274
+
275
+ <div class="padding-left--md padding-bottom--md">
276
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
277
+ <div class="padding-left--md">
278
+
279
+
280
+
281
+ </div>
282
+
283
+
284
+
285
+ </div>
286
+
287
+
288
+
289
+ </div>
290
+
291
+
292
+
293
+ #### Properties
294
+
295
+ <div class="padding-left--md padding-bottom--md">
296
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
297
+ <div class="padding-left--md">
298
+
299
+ The error root cause.
300
+
301
+ </div>
302
+
303
+
304
+
305
+ </div>
306
+
307
+
308
+ <div class="padding-left--md padding-bottom--md">
309
+ <strong>name</strong>: "DataTypeError"
310
+ <div class="padding-left--md">
311
+
312
+ The error name.
313
+
314
+ </div>
315
+
316
+
317
+
318
+ </div>
319
+
320
+
321
+
322
+ ### PlatformHttpClient
323
+ <!-- default child "Class" -->
324
+ The http client that serves as an environment agnostic (browser vs node) abstraction for making http calls.
325
+ It handles the authentication of the requests made to the Platform Services and the Serverless Functions.
326
+
327
+ Currently, only the requests to the Platform Services and the Serverless Functions are supported.
328
+
329
+
330
+ #### Constructors
331
+
332
+ ##### new PlatformHttpClient()
333
+ <div class="padding-left--md">
334
+
335
+ <!-- no parameters -->
336
+
337
+
338
+ </div>
339
+
340
+
341
+
342
+ #### Methods
343
+
344
+
345
+ ##### send
346
+
347
+ <div class="padding-bottom--md">
348
+ <strong>send(options): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>&lt;<a href="#httpclientresponse">HttpClientResponse</a>&gt;</strong>
349
+
350
+ <div class="padding-left--md">
351
+
352
+ Sends an http request as configured by the `options`.
353
+ Returns a promise that resolves with a response object for successful requests or rejects with an appropriate error
354
+ when one of the following situations happen:
355
+ - `DataTypeError` - request body does not conform to the specified request body type,
356
+ - `HttpClientRequestError` - request cannot be sent (e.g. due to network error or invalid request),
357
+ - `HttpClientResponseError` - response status is considered invalid by the status validator,
358
+ - `HttpClientAbortError` - request was aborted.
359
+
360
+
361
+ **Parameters**
362
+
363
+ <div class="padding-left--md padding-bottom--md">
364
+ <strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt;
365
+ <div class="padding-left--md">
366
+
367
+ Options used to configure the request.
368
+
369
+ </div>
370
+
371
+
372
+
373
+ </div>
374
+
375
+
376
+
377
+ #### Returns
378
+
379
+ <div class="padding-left--md">
380
+ Promise&lt;HttpClientResponse&gt; A promise that resolves with the response object or rejects with an error.
381
+
382
+ </div>
383
+
384
+
385
+
386
+
387
+
388
+ </div>
389
+
390
+
391
+
392
+ </div>
393
+
394
+
395
+
396
+
397
+ ### PlatformHttpClientAbortError
398
+ <!-- default child "Class" -->
399
+ Represents a situation when the request was aborted.
400
+
401
+
402
+ #### Constructors
403
+
404
+ ##### new PlatformHttpClientAbortError(cause)
405
+ <div class="padding-left--md">
406
+
407
+ **Parameters**
408
+
409
+ <div class="padding-left--md padding-bottom--md">
410
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
411
+ <div class="padding-left--md">
412
+
413
+
414
+
415
+ </div>
416
+
417
+
418
+
419
+ </div>
420
+
421
+
422
+
423
+ </div>
424
+
425
+
426
+
427
+ #### Properties
428
+
429
+ <div class="padding-left--md padding-bottom--md">
430
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
431
+ <div class="padding-left--md">
432
+
433
+ The error root cause.
434
+
435
+ </div>
436
+
437
+
438
+
439
+ </div>
440
+
441
+
442
+ <div class="padding-left--md padding-bottom--md">
443
+ <strong>name</strong>: "AbortError"
444
+ <div class="padding-left--md">
445
+
446
+ The error name.
447
+
448
+ </div>
449
+
450
+
451
+
452
+ </div>
453
+
454
+
455
+
456
+ ### PlatformHttpClientRequestError
457
+ <!-- default child "Class" -->
458
+ Represents a situation when the request is invalid and cannot be sent.
459
+
460
+
461
+ #### Constructors
462
+
463
+ ##### new PlatformHttpClientRequestError(cause)
464
+ <div class="padding-left--md">
465
+
466
+ **Parameters**
467
+
468
+ <div class="padding-left--md padding-bottom--md">
469
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
470
+ <div class="padding-left--md">
471
+
472
+
473
+
474
+ </div>
475
+
476
+
477
+
478
+ </div>
479
+
480
+
481
+
482
+ </div>
483
+
484
+
485
+
486
+ #### Properties
487
+
488
+ <div class="padding-left--md padding-bottom--md">
489
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
490
+ <div class="padding-left--md">
491
+
492
+ The error root cause.
493
+
494
+ </div>
495
+
496
+
497
+
498
+ </div>
499
+
500
+
501
+ <div class="padding-left--md padding-bottom--md">
502
+ <strong>name</strong>: "RequestError"
503
+ <div class="padding-left--md">
504
+
505
+ The error name.
506
+
507
+ </div>
508
+
509
+
510
+
511
+ </div>
512
+
513
+
514
+
515
+ ### PlatformHttpClientResponse
516
+ <!-- default child "Class" -->
517
+ Represents the response to a request.
518
+
519
+
520
+ #### Constructors
521
+
522
+ ##### new PlatformHttpClientResponse(response)
523
+ <div class="padding-left--md">
524
+
525
+ **Parameters**
526
+
527
+ <div class="padding-left--md padding-bottom--md">
528
+ <strong>response</strong>: <a href="#response">Response</a>
529
+ <div class="padding-left--md">
530
+
531
+
532
+
533
+ </div>
534
+
535
+
536
+
537
+ </div>
538
+
539
+
540
+
541
+ </div>
542
+
543
+
544
+
545
+ #### Accessors
546
+
547
+ ##### headers
548
+ <!-- default child "Accessor" -->
549
+ The response headers.
550
+
551
+
552
+ ##### status
553
+ <!-- default child "Accessor" -->
554
+ The status code of the response.
555
+
556
+
557
+ ##### statusText
558
+ <!-- default child "Accessor" -->
559
+ The status message corresponding to the status code.
560
+
561
+
562
+ ##### url
563
+ <!-- default child "Accessor" -->
564
+ The URL of the response.
565
+
566
+
567
+ #### Methods
568
+
569
+
570
+ ##### body
571
+
572
+ <div class="padding-bottom--md">
573
+ <strong>body(responseBodyType): <a href="#responsebodytypes">ResponseBodyTypes</a>&lt;<a href="#t">T</a>&gt;</strong>
574
+
575
+ <div class="padding-left--md">
576
+
577
+ Returns the response body in a form that conforms to the specified response body type.
578
+
579
+
580
+ **Parameters**
581
+
582
+ <div class="padding-left--md padding-bottom--md">
583
+ <strong>responseBodyType</strong>: <a href="#t">T</a>
584
+ <div class="padding-left--md">
585
+
586
+ The type of the response body.
587
+ Can be `text`, `json`, `binary`, `form-data`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
588
+ The default response body type is `json`.
589
+
590
+ </div>
591
+
592
+
593
+
594
+ </div>
595
+
596
+
597
+
598
+ <!-- no returns -->
599
+
600
+
601
+
602
+ </div>
603
+
604
+
605
+
606
+ </div>
607
+
608
+
609
+
610
+
611
+ ### PlatformHttpClientResponseError
612
+ <!-- default child "Class" -->
613
+ Represents a situation when the response status is considered invalid by the status validator.
614
+
615
+
616
+ #### Constructors
617
+
618
+ ##### new PlatformHttpClientResponseError(response)
619
+ <div class="padding-left--md">
620
+
621
+ **Parameters**
622
+
623
+ <div class="padding-left--md padding-bottom--md">
624
+ <strong>response</strong>: <a href="#response">Response</a>
625
+ <div class="padding-left--md">
626
+
627
+
628
+
629
+ </div>
630
+
631
+
632
+
633
+ </div>
634
+
635
+
636
+
637
+ </div>
638
+
639
+
640
+
641
+ #### Properties
642
+
643
+ <div class="padding-left--md padding-bottom--md">
644
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
645
+ <div class="padding-left--md">
646
+
647
+ The error root cause.
648
+
649
+ </div>
650
+
651
+
652
+
653
+ </div>
654
+
655
+
656
+ <div class="padding-left--md padding-bottom--md">
657
+ <strong>name</strong>: "ResponseError"
658
+ <div class="padding-left--md">
659
+
660
+ The error name.
661
+
662
+ </div>
663
+
664
+
665
+
666
+ </div>
667
+
668
+
669
+ <div class="padding-left--md padding-bottom--md">
670
+ <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
671
+ <div class="padding-left--md">
672
+
673
+ The response.
674
+
675
+ </div>
676
+
677
+
678
+
679
+ </div>
680
+
681
+
682
+
683
+ ### PlatformUnsupportedOperationError
684
+ <!-- default child "Class" -->
685
+
686
+
687
+
688
+ #### Constructors
689
+
690
+ ##### new PlatformUnsupportedOperationError(message,cause?)
691
+ <div class="padding-left--md">
692
+
693
+ **Parameters**
694
+
695
+ <div class="padding-left--md padding-bottom--md">
696
+ <strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
697
+ <div class="padding-left--md">
698
+
699
+
700
+
701
+ </div>
702
+
703
+
704
+
705
+ </div>
706
+
707
+ <div class="padding-left--md padding-bottom--md">
708
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
709
+ <div class="padding-left--md">
710
+
711
+
712
+
713
+ </div>
714
+
715
+
716
+
717
+ </div>
718
+
719
+
720
+
721
+ </div>
722
+
723
+
724
+
725
+ #### Properties
726
+
727
+ <div class="padding-left--md padding-bottom--md">
728
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
729
+ <div class="padding-left--md">
730
+
731
+ The error root cause.
732
+
733
+ </div>
734
+
735
+
736
+
737
+ </div>
738
+
739
+
740
+ <div class="padding-left--md padding-bottom--md">
741
+ <strong>name</strong>: "UnsupportedOperationError"
742
+ <div class="padding-left--md">
743
+
744
+ The error name.
745
+
746
+ </div>
747
+
748
+
749
+
750
+ </div>
751
+
752
+
753
+ ## Interfaces
754
+
755
+ ### AbortController
756
+ <!-- default child "Interface" -->
757
+ Represents a controller object that allows to abort one or more requests as and when desired.
758
+
759
+
760
+ #### Properties
761
+
762
+ <div class="padding-left--md padding-bottom--md">
763
+ <strong>signal</strong>: <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a>
764
+ <div class="padding-left--md">
765
+
766
+ Returns an AbortSignal object instance, which can be used to communicate with a request.
767
+
768
+ </div>
769
+
770
+
771
+
772
+ </div>
773
+
774
+
775
+ #### Methods
776
+
777
+
778
+ ##### abort
779
+
780
+ <div class="padding-bottom--md">
781
+ <strong>abort(): void</strong>
782
+
783
+ <div class="padding-left--md">
784
+
785
+ Aborts a request before it has completed.
786
+
787
+
788
+ <!-- no parameters -->
789
+
790
+
791
+ <!-- no returns -->
792
+
793
+
794
+
795
+ </div>
796
+
797
+
798
+
799
+ </div>
800
+
801
+
802
+
803
+
804
+ ### AbortSignal
805
+ <!-- default child "Interface" -->
806
+ Represents a signal object that allows to communicate with the request and abort it using the `AbortController`.
807
+
808
+
809
+ #### Properties
810
+
811
+ <div class="padding-left--md padding-bottom--md">
812
+ <strong>aborted</strong>: boolean
813
+ <div class="padding-left--md">
814
+
815
+ A flag indicating whether the requests the signal is communicating with are aborted.
816
+
817
+ </div>
818
+
819
+
820
+
821
+ </div>
822
+
823
+
824
+ <div class="padding-left--md padding-bottom--md">
825
+ <strong>onabort</strong>: null | Object
826
+ <div class="padding-left--md">
827
+
828
+ Invoked when the requests the signal is communicating with are aborted.
829
+
830
+ </div>
831
+
832
+
833
+
834
+ </div>
835
+
836
+
837
+ <div class="padding-left--md padding-bottom--md">
838
+ <strong>reason</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
839
+ <div class="padding-left--md">
840
+
841
+
842
+
843
+ </div>
844
+
845
+
846
+
847
+ </div>
848
+
849
+
850
+ #### Methods
851
+
852
+
853
+ ##### throwIfAborted
854
+
855
+ <div class="padding-bottom--md">
856
+ <strong>throwIfAborted(): void</strong>
857
+
858
+ <div class="padding-left--md">
859
+
860
+
861
+
862
+
863
+ <!-- no parameters -->
864
+
865
+
866
+ <!-- no returns -->
867
+
868
+
869
+
870
+ </div>
871
+
872
+
873
+
874
+ </div>
875
+
876
+
877
+
878
+
879
+ ### BaseError
880
+ <!-- default child "Interface" -->
881
+
882
+
883
+
884
+ #### Properties
885
+
886
+ <div class="padding-left--md padding-bottom--md">
887
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
888
+ <div class="padding-left--md">
889
+
890
+
891
+
892
+ </div>
893
+
894
+
895
+
896
+ </div>
897
+
898
+
899
+ <div class="padding-left--md padding-bottom--md">
900
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
901
+ <div class="padding-left--md">
902
+
903
+
904
+
905
+ </div>
906
+
907
+
908
+
909
+ </div>
910
+
911
+
912
+
913
+ ### Binary
914
+ <!-- default child "Interface" -->
915
+ Represents an environment agnostic (browser vs node) abstraction layer for binary data.
916
+
917
+
918
+ #### Methods
919
+
920
+
921
+ ##### get
922
+
923
+ <div class="padding-bottom--md">
924
+ <strong>get(type): <a href="#datatypes">DataTypes</a>&lt;<a href="#t">T</a>&gt;</strong>
925
+
926
+ <div class="padding-left--md">
927
+
928
+ Returns the binary data in a form that conforms to the specified type.
929
+
930
+
931
+ **Parameters**
932
+
933
+ <div class="padding-left--md padding-bottom--md">
934
+ <strong>type</strong>: <a href="#t">T</a>
935
+ <div class="padding-left--md">
936
+
937
+ The type of the data.
938
+ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
939
+
940
+ </div>
941
+
942
+
943
+
944
+ </div>
945
+
946
+
947
+
948
+ <!-- no returns -->
949
+
950
+
951
+
952
+ </div>
953
+
954
+
955
+
956
+ </div>
957
+
958
+
959
+
960
+
961
+ ### BinaryFormDataRequestField
962
+ <!-- default child "Interface" -->
963
+ Represents an binary field.
964
+
965
+
966
+ #### Properties
967
+
968
+ <div class="padding-left--md padding-bottom--md">
969
+ <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
970
+ <div class="padding-left--md">
971
+
972
+ The content type of the data contained in `value`.
973
+ The default content type for the binary is 'application/octet-stream'.
974
+
975
+ </div>
976
+
977
+
978
+
979
+ </div>
980
+
981
+
982
+ <div class="padding-left--md padding-bottom--md">
983
+ <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
984
+ <div class="padding-left--md">
985
+
986
+ The filename reported to the server.
987
+ The default filename for the binary is 'binary'.
988
+
989
+ </div>
990
+
991
+
992
+
993
+ </div>
994
+
995
+
996
+ <div class="padding-left--md padding-bottom--md">
997
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
998
+ <div class="padding-left--md">
999
+
1000
+ The name of the field.
1001
+
1002
+ </div>
1003
+
1004
+
1005
+
1006
+ </div>
1007
+
1008
+
1009
+ <div class="padding-left--md padding-bottom--md">
1010
+ <strong>type</strong>: "binary"
1011
+ <div class="padding-left--md">
1012
+
1013
+ A binary field type discriminator.
1014
+
1015
+ </div>
1016
+
1017
+
1018
+
1019
+ </div>
1020
+
1021
+
1022
+ <div class="padding-left--md padding-bottom--md">
1023
+ <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>
1024
+ <div class="padding-left--md">
1025
+
1026
+ The field's value.
1027
+
1028
+ </div>
1029
+
1030
+
1031
+
1032
+ </div>
1033
+
1034
+
1035
+
1036
+ ### BinaryFormDataResponseField
1037
+ <!-- default child "Interface" -->
1038
+
1039
+
1040
+
1041
+ #### Properties
1042
+
1043
+ <div class="padding-left--md padding-bottom--md">
1044
+ <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1045
+ <div class="padding-left--md">
1046
+
1047
+
1048
+
1049
+ </div>
1050
+
1051
+
1052
+
1053
+ </div>
1054
+
1055
+
1056
+ <div class="padding-left--md padding-bottom--md">
1057
+ <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1058
+ <div class="padding-left--md">
1059
+
1060
+
1061
+
1062
+ </div>
1063
+
1064
+
1065
+
1066
+ </div>
1067
+
1068
+
1069
+ <div class="padding-left--md padding-bottom--md">
1070
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1071
+ <div class="padding-left--md">
1072
+
1073
+
1074
+
1075
+ </div>
1076
+
1077
+
1078
+
1079
+ </div>
1080
+
1081
+
1082
+ <div class="padding-left--md padding-bottom--md">
1083
+ <strong>type</strong>: "binary"
1084
+ <div class="padding-left--md">
1085
+
1086
+
1087
+
1088
+ </div>
1089
+
1090
+
1091
+
1092
+ </div>
1093
+
1094
+
1095
+ <div class="padding-left--md padding-bottom--md">
1096
+ <strong>value</strong>: <a href="#binary">Binary</a>
1097
+ <div class="padding-left--md">
1098
+
1099
+
1100
+
1101
+ </div>
1102
+
1103
+
1104
+
1105
+ </div>
1106
+
1107
+
1108
+
1109
+ ### DataTypeError
1110
+ <!-- default child "Interface" -->
1111
+
1112
+
1113
+
1114
+ #### Properties
1115
+
1116
+ <div class="padding-left--md padding-bottom--md">
1117
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1118
+ <div class="padding-left--md">
1119
+
1120
+ The error root cause.
1121
+
1122
+ </div>
1123
+
1124
+
1125
+
1126
+ </div>
1127
+
1128
+
1129
+ <div class="padding-left--md padding-bottom--md">
1130
+ <strong>name</strong>: "DataTypeError"
1131
+ <div class="padding-left--md">
1132
+
1133
+ The error name.
1134
+
1135
+ </div>
1136
+
1137
+
1138
+
1139
+ </div>
1140
+
1141
+
1142
+
1143
+ ### Headers
1144
+ <!-- default child "Interface" -->
1145
+ Represents http headers.
1146
+
1147
+
1148
+ ### HttpClient
1149
+ <!-- default child "Interface" -->
1150
+ The http client that serves as an environment agnostic (browser vs node) abstraction for making http calls.
1151
+ It handles the authentication of the requests made to the Platform Services and the Serverless Functions.
1152
+
1153
+ Currently, only the requests to the Platform Services and the Serverless Functions are supported.
1154
+
1155
+
1156
+ #### Methods
1157
+
1158
+
1159
+ ##### send
1160
+
1161
+ <div class="padding-bottom--md">
1162
+ <strong>send(options): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>&lt;<a href="#httpclientresponse">HttpClientResponse</a>&gt;</strong>
1163
+
1164
+ <div class="padding-left--md">
1165
+
1166
+ Sends an http request as configured by the `options`.
1167
+ Returns a promise that resolves with a response object for successful requests or rejects with an appropriate error
1168
+ when one of the following situations happen:
1169
+ - `DataTypeError` - request body does not conform to the specified request body type,
1170
+ - `HttpClientRequestError` - request cannot be sent (e.g. due to network error or invalid request),
1171
+ - `HttpClientResponseError` - response status is considered invalid by the status validator,
1172
+ - `HttpClientAbortError` - request was aborted.
1173
+
1174
+
1175
+ **Parameters**
1176
+
1177
+ <div class="padding-left--md padding-bottom--md">
1178
+ <strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a>&lt;<a href="#t">T</a>&gt;
1179
+ <div class="padding-left--md">
1180
+
1181
+ Options used to configure the request.
1182
+
1183
+ </div>
1184
+
1185
+
1186
+
1187
+ </div>
1188
+
1189
+
1190
+
1191
+ #### Returns
1192
+
1193
+ <div class="padding-left--md">
1194
+ Promise&lt;HttpClientResponse&gt; A promise that resolves with the response object or rejects with an error.
1195
+
1196
+ </div>
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+ </div>
1203
+
1204
+
1205
+
1206
+ </div>
1207
+
1208
+
1209
+
1210
+
1211
+ ### HttpClientAbortError
1212
+ <!-- default child "Interface" -->
1213
+ Represents a situation when the request was aborted.
1214
+
1215
+
1216
+ #### Properties
1217
+
1218
+ <div class="padding-left--md padding-bottom--md">
1219
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1220
+ <div class="padding-left--md">
1221
+
1222
+ The error root cause.
1223
+
1224
+ </div>
1225
+
1226
+
1227
+
1228
+ </div>
1229
+
1230
+
1231
+ <div class="padding-left--md padding-bottom--md">
1232
+ <strong>name</strong>: "AbortError"
1233
+ <div class="padding-left--md">
1234
+
1235
+ The error name.
1236
+
1237
+ </div>
1238
+
1239
+
1240
+
1241
+ </div>
1242
+
1243
+
1244
+
1245
+ ### HttpClientNetworkError
1246
+ <!-- default child "Interface" -->
1247
+ Represents a situation when a network error occurred.
1248
+
1249
+
1250
+ #### Properties
1251
+
1252
+ <div class="padding-left--md padding-bottom--md">
1253
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1254
+ <div class="padding-left--md">
1255
+
1256
+ The error root cause.
1257
+
1258
+ </div>
1259
+
1260
+
1261
+
1262
+ </div>
1263
+
1264
+
1265
+ <div class="padding-left--md padding-bottom--md">
1266
+ <strong>name</strong>: "NetworkError"
1267
+ <div class="padding-left--md">
1268
+
1269
+ The error name.
1270
+
1271
+ </div>
1272
+
1273
+
1274
+
1275
+ </div>
1276
+
1277
+
1278
+
1279
+ ### HttpClientRequestError
1280
+ <!-- default child "Interface" -->
1281
+ Represents a situation when the request is invalid and cannot be sent.
1282
+
1283
+
1284
+ #### Properties
1285
+
1286
+ <div class="padding-left--md padding-bottom--md">
1287
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1288
+ <div class="padding-left--md">
1289
+
1290
+ The error root cause.
1291
+
1292
+ </div>
1293
+
1294
+
1295
+
1296
+ </div>
1297
+
1298
+
1299
+ <div class="padding-left--md padding-bottom--md">
1300
+ <strong>name</strong>: "RequestError"
1301
+ <div class="padding-left--md">
1302
+
1303
+ The error name.
1304
+
1305
+ </div>
1306
+
1307
+
1308
+
1309
+ </div>
1310
+
1311
+
1312
+
1313
+ ### HttpClientRequestOptions
1314
+ <!-- default child "Interface" -->
1315
+ Represents the options used to configure the request.
1316
+
1317
+
1318
+ #### Properties
1319
+
1320
+ <div class="padding-left--md padding-bottom--md">
1321
+ <strong>abortSignal</strong>: <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal">AbortSignal</a>
1322
+ <div class="padding-left--md">
1323
+
1324
+ An AbortSignal instance that can be used to cancel the request.
1325
+
1326
+ </div>
1327
+
1328
+
1329
+
1330
+ </div>
1331
+
1332
+
1333
+ <div class="padding-left--md padding-bottom--md">
1334
+ <strong>body</strong>: <a href="#requestbodytypes">RequestBodyTypes</a>&lt;<a href="#t">T</a>&gt;
1335
+ <div class="padding-left--md">
1336
+
1337
+ A request body that will be send along with the request.
1338
+ The structure of the request body needs to conform to the specified request body type.
1339
+
1340
+ </div>
1341
+
1342
+
1343
+
1344
+ </div>
1345
+
1346
+
1347
+ <div class="padding-left--md padding-bottom--md">
1348
+ <strong>headers</strong>: <a href="#headers">Headers</a>
1349
+ <div class="padding-left--md">
1350
+
1351
+ The request headers.
1352
+
1353
+ </div>
1354
+
1355
+
1356
+
1357
+ </div>
1358
+
1359
+
1360
+ <div class="padding-left--md padding-bottom--md">
1361
+ <strong>method</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1362
+ <div class="padding-left--md">
1363
+
1364
+ The request method, e.g. `GET`, `POST`.
1365
+
1366
+ </div>
1367
+
1368
+
1369
+
1370
+ </div>
1371
+
1372
+
1373
+ <div class="padding-left--md padding-bottom--md">
1374
+ <strong>requestBodyType</strong>: <a href="#t">T</a>
1375
+ <div class="padding-left--md">
1376
+
1377
+ The type of the request body. Can be `text`, `json`, `binary` or `form-data`.
1378
+ The default request body type is `json`.
1379
+
1380
+ </div>
1381
+
1382
+
1383
+
1384
+ </div>
1385
+
1386
+
1387
+ <div class="padding-left--md padding-bottom--md">
1388
+ <strong>statusValidator</strong>: <a href="#statusvalidator">StatusValidator</a>
1389
+ <div class="padding-left--md">
1390
+
1391
+ A custom status validator function.
1392
+ If the status validator function returns `true` the returned promise resolves with the `HttpClientResponse`
1393
+ Otherwise the promise rejects with the `StatusError`.
1394
+ The default status validator function considers the `2xx` status codes as valid.
1395
+
1396
+ </div>
1397
+
1398
+
1399
+
1400
+ </div>
1401
+
1402
+
1403
+ <div class="padding-left--md padding-bottom--md">
1404
+ <strong>url</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1405
+ <div class="padding-left--md">
1406
+
1407
+ The URL of the resource to fetch.
1408
+
1409
+ </div>
1410
+
1411
+
1412
+
1413
+ </div>
1414
+
1415
+
1416
+
1417
+ ### HttpClientResponse
1418
+ <!-- default child "Interface" -->
1419
+ Represents the response to a request.
1420
+
1421
+
1422
+ #### Properties
1423
+
1424
+ <div class="padding-left--md padding-bottom--md">
1425
+ <strong>headers</strong>: <a href="#headers">Headers</a>
1426
+ <div class="padding-left--md">
1427
+
1428
+ The response headers.
1429
+
1430
+ </div>
1431
+
1432
+
1433
+
1434
+ </div>
1435
+
1436
+
1437
+ <div class="padding-left--md padding-bottom--md">
1438
+ <strong>status</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a>
1439
+ <div class="padding-left--md">
1440
+
1441
+ The status code of the response.
1442
+
1443
+ </div>
1444
+
1445
+
1446
+
1447
+ </div>
1448
+
1449
+
1450
+ <div class="padding-left--md padding-bottom--md">
1451
+ <strong>statusText</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1452
+ <div class="padding-left--md">
1453
+
1454
+ The status message corresponding to the status code.
1455
+
1456
+ </div>
1457
+
1458
+
1459
+
1460
+ </div>
1461
+
1462
+
1463
+ <div class="padding-left--md padding-bottom--md">
1464
+ <strong>url</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1465
+ <div class="padding-left--md">
1466
+
1467
+ The URL of the response.
1468
+
1469
+ </div>
1470
+
1471
+
1472
+
1473
+ </div>
1474
+
1475
+
1476
+ #### Methods
1477
+
1478
+
1479
+ ##### body
1480
+
1481
+ <div class="padding-bottom--md">
1482
+ <strong>body(responseBodyType?): <a href="#responsebodytypes">ResponseBodyTypes</a>&lt;<a href="#t">T</a>&gt;</strong>
1483
+
1484
+ <div class="padding-left--md">
1485
+
1486
+ Returns the response body in a form that conforms to the specified response body type.
1487
+
1488
+
1489
+ **Parameters**
1490
+
1491
+ <div class="padding-left--md padding-bottom--md">
1492
+ <strong>responseBodyType</strong>: <a href="#t">T</a>
1493
+ <div class="padding-left--md">
1494
+
1495
+ The type of the response body.
1496
+ Can be `text`, `json`, `binary`, `form-data`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `stream`.
1497
+ The default response body type is `json`.
1498
+
1499
+ </div>
1500
+
1501
+
1502
+
1503
+ </div>
1504
+
1505
+
1506
+
1507
+ <!-- no returns -->
1508
+
1509
+
1510
+
1511
+ </div>
1512
+
1513
+
1514
+
1515
+ </div>
1516
+
1517
+
1518
+
1519
+
1520
+ ### HttpClientResponseError
1521
+ <!-- default child "Interface" -->
1522
+ Represents a situation when the response status is considered invalid by the status validator.
1523
+
1524
+
1525
+ #### Properties
1526
+
1527
+ <div class="padding-left--md padding-bottom--md">
1528
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1529
+ <div class="padding-left--md">
1530
+
1531
+ The error root cause.
1532
+
1533
+ </div>
1534
+
1535
+
1536
+
1537
+ </div>
1538
+
1539
+
1540
+ <div class="padding-left--md padding-bottom--md">
1541
+ <strong>name</strong>: "ResponseError"
1542
+ <div class="padding-left--md">
1543
+
1544
+ The error name.
1545
+
1546
+ </div>
1547
+
1548
+
1549
+
1550
+ </div>
1551
+
1552
+
1553
+ <div class="padding-left--md padding-bottom--md">
1554
+ <strong>response</strong>: <a href="#httpclientresponse">HttpClientResponse</a>
1555
+ <div class="padding-left--md">
1556
+
1557
+ The response.
1558
+
1559
+ </div>
1560
+
1561
+
1562
+
1563
+ </div>
1564
+
1565
+
1566
+
1567
+ ### JsonFormDataRequestField
1568
+ <!-- default child "Interface" -->
1569
+ Represents a JSON field.
1570
+
1571
+
1572
+ #### Properties
1573
+
1574
+ <div class="padding-left--md padding-bottom--md">
1575
+ <strong>contentType</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1576
+ <div class="padding-left--md">
1577
+
1578
+ The content type of the data contained in `value`.
1579
+ The default content type for the JSON is 'application/json'.
1580
+
1581
+ </div>
1582
+
1583
+
1584
+
1585
+ </div>
1586
+
1587
+
1588
+ <div class="padding-left--md padding-bottom--md">
1589
+ <strong>filename</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1590
+ <div class="padding-left--md">
1591
+
1592
+ The filename reported to the server.
1593
+ The default filename for the JSON is 'json'.
1594
+
1595
+ </div>
1596
+
1597
+
1598
+
1599
+ </div>
1600
+
1601
+
1602
+ <div class="padding-left--md padding-bottom--md">
1603
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1604
+ <div class="padding-left--md">
1605
+
1606
+ The name of the field.
1607
+
1608
+ </div>
1609
+
1610
+
1611
+
1612
+ </div>
1613
+
1614
+
1615
+ <div class="padding-left--md padding-bottom--md">
1616
+ <strong>type</strong>: "json"
1617
+ <div class="padding-left--md">
1618
+
1619
+ A JSON field type discriminator.
1620
+
1621
+ </div>
1622
+
1623
+
1624
+
1625
+ </div>
1626
+
1627
+
1628
+ <div class="padding-left--md padding-bottom--md">
1629
+ <strong>value</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1630
+ <div class="padding-left--md">
1631
+
1632
+ The field's value.
1633
+
1634
+ </div>
1635
+
1636
+
1637
+
1638
+ </div>
1639
+
1640
+
1641
+
1642
+ ### StatusValidator
1643
+ <!-- default child "Interface" -->
1644
+
1645
+
1646
+
1647
+ ### TextFormDataRequestField
1648
+ <!-- default child "Interface" -->
1649
+ Represents a plain text field. No filename and content type is set.
1650
+
1651
+
1652
+ #### Properties
1653
+
1654
+ <div class="padding-left--md padding-bottom--md">
1655
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1656
+ <div class="padding-left--md">
1657
+
1658
+ The name of the field.
1659
+
1660
+ </div>
1661
+
1662
+
1663
+
1664
+ </div>
1665
+
1666
+
1667
+ <div class="padding-left--md padding-bottom--md">
1668
+ <strong>type</strong>: "text"
1669
+ <div class="padding-left--md">
1670
+
1671
+ A plain text field type discriminator.
1672
+
1673
+ </div>
1674
+
1675
+
1676
+
1677
+ </div>
1678
+
1679
+
1680
+ <div class="padding-left--md padding-bottom--md">
1681
+ <strong>value</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1682
+ <div class="padding-left--md">
1683
+
1684
+ The field's value.
1685
+
1686
+ </div>
1687
+
1688
+
1689
+
1690
+ </div>
1691
+
1692
+
1693
+
1694
+ ### TextFormDataResponseField
1695
+ <!-- default child "Interface" -->
1696
+
1697
+
1698
+
1699
+ #### Properties
1700
+
1701
+ <div class="padding-left--md padding-bottom--md">
1702
+ <strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1703
+ <div class="padding-left--md">
1704
+
1705
+
1706
+
1707
+ </div>
1708
+
1709
+
1710
+
1711
+ </div>
1712
+
1713
+
1714
+ <div class="padding-left--md padding-bottom--md">
1715
+ <strong>type</strong>: "text"
1716
+ <div class="padding-left--md">
1717
+
1718
+
1719
+
1720
+ </div>
1721
+
1722
+
1723
+
1724
+ </div>
1725
+
1726
+
1727
+ <div class="padding-left--md padding-bottom--md">
1728
+ <strong>value</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
1729
+ <div class="padding-left--md">
1730
+
1731
+
1732
+
1733
+ </div>
1734
+
1735
+
1736
+
1737
+ </div>
1738
+
1739
+
1740
+
1741
+ ### UnsupportedOperationError
1742
+ <!-- default child "Interface" -->
1743
+
1744
+
1745
+
1746
+ #### Properties
1747
+
1748
+ <div class="padding-left--md padding-bottom--md">
1749
+ <strong>cause</strong>: <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>
1750
+ <div class="padding-left--md">
1751
+
1752
+ The error root cause.
1753
+
1754
+ </div>
1755
+
1756
+
1757
+
1758
+ </div>
1759
+
1760
+
1761
+ <div class="padding-left--md padding-bottom--md">
1762
+ <strong>name</strong>: "UnsupportedOperationError"
1763
+ <div class="padding-left--md">
1764
+
1765
+ The error name.
1766
+
1767
+ </div>
1768
+
1769
+
1770
+
1771
+ </div>
1772
+
1773
+
1774
+ ## Variables
1775
+
1776
+ <div class="padding-left--md padding-bottom--md">
1777
+ <strong>PlatformAbortController</strong>: Object
1778
+ <div class="padding-left--md">
1779
+
1780
+
1781
+
1782
+ </div>
1783
+
1784
+
1785
+
1786
+ </div>
1787
+
1788
+
1789
+ <div class="padding-left--md padding-bottom--md">
1790
+ <strong>PlatformAbortSignal</strong>: Object
1791
+ <div class="padding-left--md">
1792
+
1793
+
1794
+
1795
+ </div>
1796
+
1797
+
1798
+
1799
+ </div>
1800
+
1801
+
1802
+ <div class="padding-left--md padding-bottom--md">
1803
+ <strong>httpClient</strong>: <a href="#httpclient">HttpClient</a>
1804
+ <div class="padding-left--md">
1805
+
1806
+
1807
+
1808
+ </div>
1809
+
1810
+
1811
+
1812
+ </div>
1813
+