@dynatrace-sdk/http-client 1.0.4 → 1.0.6
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/CHANGELOG.md +12 -0
- package/cjs/index.js +3 -1
- package/docs/DOCS.md +250 -800
- package/esm/index.js +3 -1
- package/package.json +2 -1
package/docs/DOCS.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: @dynatrace-sdk/http-client
|
|
3
|
-
description:
|
|
3
|
+
description: An environment agnostic (browser/deno vs nodejs) abstraction layer for making HTTP calls.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @dynatrace-sdk/http-client
|
|
7
7
|
|
|
8
|
+
An environment agnostic (browser/deno vs nodejs) abstraction layer for making HTTP calls.
|
|
9
|
+
|
|
8
10
|
import NpmLogo from '@site/static/img/npm-logo.png';
|
|
9
11
|
|
|
10
12
|
<div class="row margin-bottom--md">
|
|
@@ -15,7 +17,7 @@ import NpmLogo from '@site/static/img/npm-logo.png';
|
|
|
15
17
|
</a>
|
|
16
18
|
</div>
|
|
17
19
|
<div class="col" style={{textAlign: 'right'}}>
|
|
18
|
-
<a href="https://www.npmjs.com/package/@dynatrace-sdk/http-client/v/1.0.
|
|
20
|
+
<a href="https://www.npmjs.com/package/@dynatrace-sdk/http-client/v/1.0.6">v1.0.6</a>
|
|
19
21
|
</div>
|
|
20
22
|
</div>
|
|
21
23
|
|
|
@@ -35,34 +37,25 @@ npm install @dynatrace-sdk/http-client
|
|
|
35
37
|
|
|
36
38
|
<div class="padding-left--md">
|
|
37
39
|
|
|
38
|
-
|
|
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>
|
|
40
|
+
#### Parameters
|
|
52
41
|
|
|
53
|
-
|
|
42
|
+
| Name | Type |
|
|
43
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- |
|
|
44
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
45
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
54
46
|
|
|
55
47
|
</div>
|
|
56
48
|
|
|
57
49
|
#### Properties
|
|
58
50
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
</
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
| Name | Type |
|
|
52
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- |
|
|
53
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
54
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
55
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
56
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
57
|
+
| prepareStackTrace | Object |
|
|
58
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> |
|
|
66
59
|
|
|
67
60
|
### PlatformBinary
|
|
68
61
|
|
|
@@ -72,41 +65,30 @@ Represents an environment agnostic (browser vs node) abstraction layer for binar
|
|
|
72
65
|
|
|
73
66
|
#### Properties
|
|
74
67
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
</div>
|
|
68
|
+
| Name | Type |
|
|
69
|
+
| ------------------------- | --------------------------------------------------------------- |
|
|
70
|
+
| data<sup>\*required</sup> | ArrayBuffer | Blob | ReadableStream<Uint8Array> |
|
|
82
71
|
|
|
83
72
|
#### Methods
|
|
84
73
|
|
|
85
74
|
##### get
|
|
86
75
|
|
|
87
76
|
<div class="padding-bottom--md">
|
|
88
|
-
<strong>get(type):
|
|
77
|
+
<strong>get(type): DataTypes<T></strong>
|
|
89
78
|
|
|
90
79
|
<div class="padding-left--md">
|
|
91
80
|
|
|
92
81
|
Returns the binary data in a form that conforms to the specified type.
|
|
93
82
|
|
|
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
83
|
</div>
|
|
104
84
|
|
|
105
|
-
|
|
85
|
+
#### Parameters
|
|
106
86
|
|
|
107
|
-
|
|
87
|
+
| Name | Type | Description |
|
|
88
|
+
| ------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
89
|
+
| type<sup>\*required</sup> | T | <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
90
|
|
|
109
|
-
|
|
91
|
+
<!-- no returns -->
|
|
110
92
|
|
|
111
93
|
</div>
|
|
112
94
|
|
|
@@ -117,19 +99,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
|
|
|
117
99
|
|
|
118
100
|
<div class="padding-left--md">
|
|
119
101
|
|
|
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><<a href="#uint8array">Uint8Array</a>> | <a href="#buffer">Buffer</a> | <a href="#readable">Readable</a>
|
|
124
|
-
<div class="padding-left--md">
|
|
125
|
-
|
|
126
102
|
</div>
|
|
127
103
|
|
|
128
|
-
|
|
104
|
+
#### Parameters
|
|
129
105
|
|
|
130
|
-
|
|
106
|
+
| Name | Type |
|
|
107
|
+
| ------------------------- | --------------------------------------------------------------------------------------------- |
|
|
108
|
+
| data<sup>\*required</sup> | ArrayBuffer | Blob | ReadableStream<Uint8Array> | Buffer | Readable |
|
|
131
109
|
|
|
132
|
-
|
|
110
|
+
<!-- no returns -->
|
|
133
111
|
|
|
134
112
|
</div>
|
|
135
113
|
|
|
@@ -140,19 +118,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
|
|
|
140
118
|
|
|
141
119
|
<div class="padding-left--md">
|
|
142
120
|
|
|
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
121
|
</div>
|
|
150
122
|
|
|
151
|
-
|
|
123
|
+
#### Parameters
|
|
152
124
|
|
|
153
|
-
|
|
125
|
+
| Name | Type |
|
|
126
|
+
| ------------------------- | ---------------------------------------------------------------------------------------- |
|
|
127
|
+
| json<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
154
128
|
|
|
155
|
-
|
|
129
|
+
<!-- no returns -->
|
|
156
130
|
|
|
157
131
|
</div>
|
|
158
132
|
|
|
@@ -163,19 +137,15 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
|
|
|
163
137
|
|
|
164
138
|
<div class="padding-left--md">
|
|
165
139
|
|
|
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
140
|
</div>
|
|
173
141
|
|
|
174
|
-
|
|
142
|
+
#### Parameters
|
|
175
143
|
|
|
176
|
-
|
|
144
|
+
| Name | Type |
|
|
145
|
+
| ------------------------- | ----------------------------------------------------------------------------- |
|
|
146
|
+
| text<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
177
147
|
|
|
178
|
-
|
|
148
|
+
<!-- no returns -->
|
|
179
149
|
|
|
180
150
|
</div>
|
|
181
151
|
|
|
@@ -189,46 +159,25 @@ Can be `text`, `json`, `array-buffer`, `blob`, `readable-stream`, `buffer` or `s
|
|
|
189
159
|
|
|
190
160
|
<div class="padding-left--md">
|
|
191
161
|
|
|
192
|
-
|
|
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>
|
|
162
|
+
#### Parameters
|
|
206
163
|
|
|
207
|
-
|
|
164
|
+
| Name | Type |
|
|
165
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- |
|
|
166
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
167
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
208
168
|
|
|
209
169
|
</div>
|
|
210
170
|
|
|
211
171
|
#### Properties
|
|
212
172
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
The error
|
|
218
|
-
|
|
219
|
-
|
|
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>
|
|
173
|
+
| Name | Type | Description |
|
|
174
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
175
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
176
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
177
|
+
| name<sup>\*required</sup> | "DataTypeError" | The error name. |
|
|
178
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
179
|
+
| prepareStackTrace | Object | |
|
|
180
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
|
|
232
181
|
|
|
233
182
|
### PlatformHttpClient
|
|
234
183
|
|
|
@@ -245,7 +194,7 @@ Currently, only the requests to the Platform Services and the Serverless Functio
|
|
|
245
194
|
|
|
246
195
|
<div class="padding-left--md">
|
|
247
196
|
|
|
248
|
-
|
|
197
|
+
<!-- no parameters -->
|
|
249
198
|
|
|
250
199
|
</div>
|
|
251
200
|
|
|
@@ -254,7 +203,7 @@ Currently, only the requests to the Platform Services and the Serverless Functio
|
|
|
254
203
|
##### send
|
|
255
204
|
|
|
256
205
|
<div class="padding-bottom--md">
|
|
257
|
-
<strong>send(options):
|
|
206
|
+
<strong>send(options): Promise<<a href="#httpclientresponse">HttpClientResponse</a>></strong>
|
|
258
207
|
|
|
259
208
|
<div class="padding-left--md">
|
|
260
209
|
|
|
@@ -267,26 +216,17 @@ when one of the following situations happen:
|
|
|
267
216
|
- `HttpClientResponseError` - response status is considered invalid by the status validator,
|
|
268
217
|
- `HttpClientAbortError` - request was aborted.
|
|
269
218
|
|
|
270
|
-
**Parameters**
|
|
271
|
-
|
|
272
|
-
<div class="padding-left--md padding-bottom--md">
|
|
273
|
-
<strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a><<a href="#t">T</a>>
|
|
274
|
-
<div class="padding-left--md">
|
|
275
|
-
|
|
276
|
-
Options used to configure the request.
|
|
277
|
-
|
|
278
|
-
</div>
|
|
279
|
-
|
|
280
219
|
</div>
|
|
281
220
|
|
|
282
|
-
####
|
|
221
|
+
#### Parameters
|
|
283
222
|
|
|
284
|
-
|
|
285
|
-
|
|
223
|
+
| Name | Type | Description |
|
|
224
|
+
| ---------------------------- | ------------------------------------------------------------------------- | -------------------------------------- |
|
|
225
|
+
| options<sup>\*required</sup> | <a href="#httpclientrequestoptions">HttpClientRequestOptions</a><T> | Options used to configure the request. |
|
|
286
226
|
|
|
287
|
-
|
|
227
|
+
#### Returns
|
|
288
228
|
|
|
289
|
-
|
|
229
|
+
Promise<HttpClientResponse> A promise that resolves with the response object or rejects with an error.
|
|
290
230
|
|
|
291
231
|
</div>
|
|
292
232
|
|
|
@@ -302,39 +242,24 @@ Represents a situation when the request was aborted.
|
|
|
302
242
|
|
|
303
243
|
<div class="padding-left--md">
|
|
304
244
|
|
|
305
|
-
|
|
306
|
-
|
|
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>
|
|
245
|
+
#### Parameters
|
|
312
246
|
|
|
313
|
-
|
|
247
|
+
| Name | Type |
|
|
248
|
+
| -------------------------- | ---------------------------------------------------------------------------------------- |
|
|
249
|
+
| cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
314
250
|
|
|
315
251
|
</div>
|
|
316
252
|
|
|
317
253
|
#### Properties
|
|
318
254
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
<
|
|
322
|
-
|
|
323
|
-
The error
|
|
324
|
-
|
|
325
|
-
|
|
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>
|
|
255
|
+
| Name | Type | Description |
|
|
256
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
257
|
+
| cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
258
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
259
|
+
| name<sup>\*required</sup> | "AbortError" | The error name. |
|
|
260
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
261
|
+
| prepareStackTrace | Object | |
|
|
262
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
|
|
338
263
|
|
|
339
264
|
### PlatformHttpClientRequestError
|
|
340
265
|
|
|
@@ -348,39 +273,24 @@ Represents a situation when the request is invalid and cannot be sent.
|
|
|
348
273
|
|
|
349
274
|
<div class="padding-left--md">
|
|
350
275
|
|
|
351
|
-
|
|
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>
|
|
276
|
+
#### Parameters
|
|
358
277
|
|
|
359
|
-
|
|
278
|
+
| Name | Type |
|
|
279
|
+
| -------------------------- | ---------------------------------------------------------------------------------------- |
|
|
280
|
+
| cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
360
281
|
|
|
361
282
|
</div>
|
|
362
283
|
|
|
363
284
|
#### Properties
|
|
364
285
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
<
|
|
368
|
-
|
|
369
|
-
The error
|
|
370
|
-
|
|
371
|
-
|
|
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>
|
|
286
|
+
| Name | Type | Description |
|
|
287
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
288
|
+
| cause<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
289
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
290
|
+
| name<sup>\*required</sup> | "RequestError" | The error name. |
|
|
291
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
292
|
+
| prepareStackTrace | Object | |
|
|
293
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
|
|
384
294
|
|
|
385
295
|
### PlatformHttpClientResponse
|
|
386
296
|
|
|
@@ -394,17 +304,19 @@ Represents the response to a request.
|
|
|
394
304
|
|
|
395
305
|
<div class="padding-left--md">
|
|
396
306
|
|
|
397
|
-
|
|
307
|
+
#### Parameters
|
|
398
308
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
<
|
|
309
|
+
| Name | Type |
|
|
310
|
+
| ----------------------------- | -------- |
|
|
311
|
+
| response<sup>\*required</sup> | Response |
|
|
402
312
|
|
|
403
313
|
</div>
|
|
404
314
|
|
|
405
|
-
|
|
315
|
+
#### Properties
|
|
406
316
|
|
|
407
|
-
|
|
317
|
+
| Name | Type |
|
|
318
|
+
| ----------------------------- | -------- |
|
|
319
|
+
| response<sup>\*required</sup> | Response |
|
|
408
320
|
|
|
409
321
|
#### Accessors
|
|
410
322
|
|
|
@@ -437,29 +349,21 @@ The URL of the response.
|
|
|
437
349
|
##### body
|
|
438
350
|
|
|
439
351
|
<div class="padding-bottom--md">
|
|
440
|
-
<strong>body(responseBodyType):
|
|
352
|
+
<strong>body(responseBodyType): ResponseBodyTypes<T></strong>
|
|
441
353
|
|
|
442
354
|
<div class="padding-left--md">
|
|
443
355
|
|
|
444
356
|
Returns the response body in a form that conforms to the specified response body type.
|
|
445
357
|
|
|
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
358
|
</div>
|
|
457
359
|
|
|
458
|
-
|
|
360
|
+
#### Parameters
|
|
459
361
|
|
|
460
|
-
|
|
362
|
+
| Name | Type | Description |
|
|
363
|
+
| ------------------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
364
|
+
| responseBodyType<sup>\*required</sup> | T | <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
365
|
|
|
462
|
-
|
|
366
|
+
<!-- no returns -->
|
|
463
367
|
|
|
464
368
|
</div>
|
|
465
369
|
|
|
@@ -475,49 +379,25 @@ Represents a situation when the response status is considered invalid by the sta
|
|
|
475
379
|
|
|
476
380
|
<div class="padding-left--md">
|
|
477
381
|
|
|
478
|
-
|
|
479
|
-
|
|
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>
|
|
382
|
+
#### Parameters
|
|
485
383
|
|
|
486
|
-
|
|
384
|
+
| Name | Type |
|
|
385
|
+
| ----------------------------- | -------- |
|
|
386
|
+
| response<sup>\*required</sup> | Response |
|
|
487
387
|
|
|
488
388
|
</div>
|
|
489
389
|
|
|
490
390
|
#### Properties
|
|
491
391
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
<
|
|
495
|
-
|
|
496
|
-
The error
|
|
497
|
-
|
|
498
|
-
</
|
|
499
|
-
|
|
500
|
-
</
|
|
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>
|
|
392
|
+
| Name | Type | Description |
|
|
393
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
394
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
395
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
396
|
+
| name<sup>\*required</sup> | "ResponseError" | The error name. |
|
|
397
|
+
| response<sup>\*required</sup> | <a href="#httpclientresponse">HttpClientResponse</a> | The response. |
|
|
398
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
399
|
+
| prepareStackTrace | Object | |
|
|
400
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
|
|
521
401
|
|
|
522
402
|
### PlatformUnsupportedOperationError
|
|
523
403
|
|
|
@@ -529,46 +409,25 @@ The response.
|
|
|
529
409
|
|
|
530
410
|
<div class="padding-left--md">
|
|
531
411
|
|
|
532
|
-
|
|
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>
|
|
412
|
+
#### Parameters
|
|
546
413
|
|
|
547
|
-
|
|
414
|
+
| Name | Type |
|
|
415
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- |
|
|
416
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
417
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
548
418
|
|
|
549
419
|
</div>
|
|
550
420
|
|
|
551
421
|
#### Properties
|
|
552
422
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
<
|
|
556
|
-
|
|
557
|
-
The error
|
|
558
|
-
|
|
559
|
-
|
|
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>
|
|
423
|
+
| Name | Type | Description |
|
|
424
|
+
| ------------------------------------ | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
425
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
426
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
427
|
+
| name<sup>\*required</sup> | "UnsupportedOperationError" | The error name. |
|
|
428
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
429
|
+
| prepareStackTrace | Object | |
|
|
430
|
+
| stackTraceLimit<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | |
|
|
572
431
|
|
|
573
432
|
## Interfaces
|
|
574
433
|
|
|
@@ -580,15 +439,9 @@ Represents a controller object that allows to abort one or more requests as and
|
|
|
580
439
|
|
|
581
440
|
#### Properties
|
|
582
441
|
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
<
|
|
586
|
-
|
|
587
|
-
Returns an AbortSignal object instance, which can be used to communicate with a request.
|
|
588
|
-
|
|
589
|
-
</div>
|
|
590
|
-
|
|
591
|
-
</div>
|
|
442
|
+
| Name | Type | Description |
|
|
443
|
+
| --------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
444
|
+
| 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
445
|
|
|
593
446
|
#### Methods
|
|
594
447
|
|
|
@@ -601,11 +454,11 @@ Returns an AbortSignal object instance, which can be used to communicate with a
|
|
|
601
454
|
|
|
602
455
|
Aborts a request before it has completed.
|
|
603
456
|
|
|
604
|
-
|
|
457
|
+
</div>
|
|
605
458
|
|
|
606
|
-
<!-- no
|
|
459
|
+
<!-- no parameters -->
|
|
607
460
|
|
|
608
|
-
|
|
461
|
+
<!-- no returns -->
|
|
609
462
|
|
|
610
463
|
</div>
|
|
611
464
|
|
|
@@ -617,33 +470,11 @@ Represents a signal object that allows to communicate with the request and abort
|
|
|
617
470
|
|
|
618
471
|
#### Properties
|
|
619
472
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
<
|
|
623
|
-
|
|
624
|
-
|
|
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>
|
|
473
|
+
| Name | Type | Description |
|
|
474
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
|
475
|
+
| 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. |
|
|
476
|
+
| onabort<sup>\*required</sup> | null | Object | Invoked when the requests the signal is communicating with are aborted. |
|
|
477
|
+
| reason<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | |
|
|
647
478
|
|
|
648
479
|
#### Methods
|
|
649
480
|
|
|
@@ -654,11 +485,11 @@ Invoked when the requests the signal is communicating with are aborted.
|
|
|
654
485
|
|
|
655
486
|
<div class="padding-left--md">
|
|
656
487
|
|
|
657
|
-
|
|
488
|
+
</div>
|
|
658
489
|
|
|
659
|
-
<!-- no
|
|
490
|
+
<!-- no parameters -->
|
|
660
491
|
|
|
661
|
-
|
|
492
|
+
<!-- no returns -->
|
|
662
493
|
|
|
663
494
|
</div>
|
|
664
495
|
|
|
@@ -668,55 +499,39 @@ Invoked when the requests the signal is communicating with are aborted.
|
|
|
668
499
|
|
|
669
500
|
#### Properties
|
|
670
501
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
<
|
|
502
|
+
| Name | Type |
|
|
503
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- |
|
|
504
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> |
|
|
505
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
506
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
507
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
674
508
|
|
|
675
|
-
|
|
509
|
+
### Binary
|
|
676
510
|
|
|
677
|
-
|
|
511
|
+
<!-- default child "Interface" -->
|
|
678
512
|
|
|
679
|
-
|
|
680
|
-
<strong>name</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a>
|
|
681
|
-
<div class="padding-left--md">
|
|
682
|
-
|
|
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.
|
|
513
|
+
Represents an environment agnostic (browser vs node) abstraction layer for binary data.
|
|
692
514
|
|
|
693
515
|
#### Methods
|
|
694
516
|
|
|
695
517
|
##### get
|
|
696
518
|
|
|
697
519
|
<div class="padding-bottom--md">
|
|
698
|
-
<strong>get(type):
|
|
520
|
+
<strong>get(type): DataTypes<T></strong>
|
|
699
521
|
|
|
700
522
|
<div class="padding-left--md">
|
|
701
523
|
|
|
702
524
|
Returns the binary data in a form that conforms to the specified type.
|
|
703
525
|
|
|
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
526
|
</div>
|
|
714
527
|
|
|
715
|
-
|
|
528
|
+
#### Parameters
|
|
716
529
|
|
|
717
|
-
|
|
530
|
+
| Name | Type | Description |
|
|
531
|
+
| ------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
532
|
+
| type<sup>\*required</sup> | T | <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
533
|
|
|
719
|
-
|
|
534
|
+
<!-- no returns -->
|
|
720
535
|
|
|
721
536
|
</div>
|
|
722
537
|
|
|
@@ -728,57 +543,13 @@ Represents an binary field.
|
|
|
728
543
|
|
|
729
544
|
#### Properties
|
|
730
545
|
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
<
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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><<a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>> | <a href="#file">File</a>
|
|
775
|
-
<div class="padding-left--md">
|
|
776
|
-
|
|
777
|
-
The field's value.
|
|
778
|
-
|
|
779
|
-
</div>
|
|
780
|
-
|
|
781
|
-
</div>
|
|
546
|
+
| Name | Type | Description |
|
|
547
|
+
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
548
|
+
| 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> |
|
|
549
|
+
| 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> |
|
|
550
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
|
|
551
|
+
| type<sup>\*required</sup> | "binary" | A binary field type discriminator. |
|
|
552
|
+
| value<sup>\*required</sup> | ArrayBuffer | Blob | Buffer | Readable | <a href="#binary">Binary</a> | ReadableStream<<a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a>> | File | The field's value. |
|
|
782
553
|
|
|
783
554
|
### BinaryFormDataResponseField
|
|
784
555
|
|
|
@@ -786,45 +557,13 @@ The field's value.
|
|
|
786
557
|
|
|
787
558
|
#### Properties
|
|
788
559
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
<
|
|
792
|
-
|
|
793
|
-
</
|
|
794
|
-
|
|
795
|
-
</
|
|
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>
|
|
560
|
+
| Name | Type |
|
|
561
|
+
| -------------------------------- | ----------------------------------------------------------------------------- |
|
|
562
|
+
| contentType<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
563
|
+
| filename<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
564
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
565
|
+
| type<sup>\*required</sup> | "binary" |
|
|
566
|
+
| value<sup>\*required</sup> | <a href="#binary">Binary</a> |
|
|
828
567
|
|
|
829
568
|
### DataTypeError
|
|
830
569
|
|
|
@@ -832,25 +571,12 @@ The field's value.
|
|
|
832
571
|
|
|
833
572
|
#### Properties
|
|
834
573
|
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
<
|
|
838
|
-
|
|
839
|
-
The error
|
|
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>
|
|
574
|
+
| Name | Type | Description |
|
|
575
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
576
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
577
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
578
|
+
| name<sup>\*required</sup> | "DataTypeError" | The error name. |
|
|
579
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
854
580
|
|
|
855
581
|
### Headers
|
|
856
582
|
|
|
@@ -872,7 +598,7 @@ Currently, only the requests to the Platform Services and the Serverless Functio
|
|
|
872
598
|
##### send
|
|
873
599
|
|
|
874
600
|
<div class="padding-bottom--md">
|
|
875
|
-
<strong>send(options):
|
|
601
|
+
<strong>send(options): Promise<<a href="#httpclientresponse">HttpClientResponse</a>></strong>
|
|
876
602
|
|
|
877
603
|
<div class="padding-left--md">
|
|
878
604
|
|
|
@@ -885,26 +611,17 @@ when one of the following situations happen:
|
|
|
885
611
|
- `HttpClientResponseError` - response status is considered invalid by the status validator,
|
|
886
612
|
- `HttpClientAbortError` - request was aborted.
|
|
887
613
|
|
|
888
|
-
**Parameters**
|
|
889
|
-
|
|
890
|
-
<div class="padding-left--md padding-bottom--md">
|
|
891
|
-
<strong>options</strong>: <a href="#httpclientrequestoptions">HttpClientRequestOptions</a><<a href="#t">T</a>>
|
|
892
|
-
<div class="padding-left--md">
|
|
893
|
-
|
|
894
|
-
Options used to configure the request.
|
|
895
|
-
|
|
896
614
|
</div>
|
|
897
615
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
#### Returns
|
|
616
|
+
#### Parameters
|
|
901
617
|
|
|
902
|
-
|
|
903
|
-
|
|
618
|
+
| Name | Type | Description |
|
|
619
|
+
| ---------------------------- | ------------------------------------------------------------------------- | -------------------------------------- |
|
|
620
|
+
| options<sup>\*required</sup> | <a href="#httpclientrequestoptions">HttpClientRequestOptions</a><T> | Options used to configure the request. |
|
|
904
621
|
|
|
905
|
-
|
|
622
|
+
#### Returns
|
|
906
623
|
|
|
907
|
-
|
|
624
|
+
Promise<HttpClientResponse> A promise that resolves with the response object or rejects with an error.
|
|
908
625
|
|
|
909
626
|
</div>
|
|
910
627
|
|
|
@@ -916,25 +633,12 @@ Represents a situation when the request was aborted.
|
|
|
916
633
|
|
|
917
634
|
#### Properties
|
|
918
635
|
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
<
|
|
922
|
-
|
|
923
|
-
The error
|
|
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>
|
|
636
|
+
| Name | Type | Description |
|
|
637
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
638
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
639
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
640
|
+
| name<sup>\*required</sup> | "AbortError" | The error name. |
|
|
641
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
938
642
|
|
|
939
643
|
### HttpClientNetworkError
|
|
940
644
|
|
|
@@ -944,25 +648,12 @@ Represents a situation when a network error occurred.
|
|
|
944
648
|
|
|
945
649
|
#### Properties
|
|
946
650
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
<
|
|
950
|
-
|
|
951
|
-
The error
|
|
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>
|
|
651
|
+
| Name | Type | Description |
|
|
652
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
653
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
654
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
655
|
+
| name<sup>\*required</sup> | "NetworkError" | The error name. |
|
|
656
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
966
657
|
|
|
967
658
|
### HttpClientRequestError
|
|
968
659
|
|
|
@@ -972,25 +663,12 @@ Represents a situation when the request is invalid and cannot be sent.
|
|
|
972
663
|
|
|
973
664
|
#### Properties
|
|
974
665
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
<
|
|
978
|
-
|
|
979
|
-
The error
|
|
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>
|
|
666
|
+
| Name | Type | Description |
|
|
667
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
668
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
669
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
670
|
+
| name<sup>\*required</sup> | "RequestError" | The error name. |
|
|
671
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
994
672
|
|
|
995
673
|
### HttpClientRequestOptions
|
|
996
674
|
|
|
@@ -1000,80 +678,14 @@ Represents the options used to configure the request.
|
|
|
1000
678
|
|
|
1001
679
|
#### Properties
|
|
1002
680
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
<
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
</
|
|
1010
|
-
|
|
1011
|
-
</div>
|
|
1012
|
-
|
|
1013
|
-
<div class="padding-left--md padding-bottom--md">
|
|
1014
|
-
<strong>body</strong>: <a href="#requestbodytypes">RequestBodyTypes</a><<a href="#t">T</a>>
|
|
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>
|
|
681
|
+
| Name | Type | Description |
|
|
682
|
+
| ------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
683
|
+
| body | RequestBodyTypes<T> | <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> |
|
|
684
|
+
| headers | <a href="#headers">Headers</a> | The request headers. |
|
|
685
|
+
| 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>. |
|
|
686
|
+
| requestBodyType | T | <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> |
|
|
687
|
+
| 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> |
|
|
688
|
+
| 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
689
|
|
|
1078
690
|
### HttpClientResponse
|
|
1079
691
|
|
|
@@ -1083,74 +695,33 @@ Represents the response to a request.
|
|
|
1083
695
|
|
|
1084
696
|
#### Properties
|
|
1085
697
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
<
|
|
1089
|
-
|
|
1090
|
-
The
|
|
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>
|
|
698
|
+
| Name | Type | Description |
|
|
699
|
+
| ------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------- |
|
|
700
|
+
| headers<sup>\*required</sup> | <a href="#headers">Headers</a> | The response headers. |
|
|
701
|
+
| status<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/Number">number</a> | The status code of the response. |
|
|
702
|
+
| 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. |
|
|
703
|
+
| url<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The URL of the response. |
|
|
1125
704
|
|
|
1126
705
|
#### Methods
|
|
1127
706
|
|
|
1128
707
|
##### body
|
|
1129
708
|
|
|
1130
709
|
<div class="padding-bottom--md">
|
|
1131
|
-
<strong>body(responseBodyType?):
|
|
710
|
+
<strong>body(responseBodyType?): ResponseBodyTypes<T></strong>
|
|
1132
711
|
|
|
1133
712
|
<div class="padding-left--md">
|
|
1134
713
|
|
|
1135
714
|
Returns the response body in a form that conforms to the specified response body type.
|
|
1136
715
|
|
|
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
716
|
</div>
|
|
1148
717
|
|
|
1149
|
-
|
|
718
|
+
#### Parameters
|
|
1150
719
|
|
|
1151
|
-
|
|
720
|
+
| Name | Type | Description |
|
|
721
|
+
| ---------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
722
|
+
| responseBodyType | T | <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
723
|
|
|
1153
|
-
|
|
724
|
+
<!-- no returns -->
|
|
1154
725
|
|
|
1155
726
|
</div>
|
|
1156
727
|
|
|
@@ -1162,35 +733,13 @@ Represents a situation when the response status is considered invalid by the sta
|
|
|
1162
733
|
|
|
1163
734
|
#### Properties
|
|
1164
735
|
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
<
|
|
1168
|
-
|
|
1169
|
-
The error
|
|
1170
|
-
|
|
1171
|
-
</
|
|
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>
|
|
736
|
+
| Name | Type | Description |
|
|
737
|
+
| ----------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
738
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
739
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
740
|
+
| name<sup>\*required</sup> | "ResponseError" | The error name. |
|
|
741
|
+
| response<sup>\*required</sup> | <a href="#httpclientresponse">HttpClientResponse</a> | The response. |
|
|
742
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
1194
743
|
|
|
1195
744
|
### JsonFormDataRequestField
|
|
1196
745
|
|
|
@@ -1200,57 +749,13 @@ Represents a JSON field.
|
|
|
1200
749
|
|
|
1201
750
|
#### Properties
|
|
1202
751
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
<
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
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>
|
|
752
|
+
| Name | Type | Description |
|
|
753
|
+
| -------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
754
|
+
| 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> |
|
|
755
|
+
| 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> |
|
|
756
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
|
|
757
|
+
| type<sup>\*required</sup> | "json" | A JSON field type discriminator. |
|
|
758
|
+
| value<sup>\*required</sup> | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The field's value. |
|
|
1254
759
|
|
|
1255
760
|
### StatusValidator
|
|
1256
761
|
|
|
@@ -1264,35 +769,11 @@ Represents a plain text field. No filename and content type is set.
|
|
|
1264
769
|
|
|
1265
770
|
#### Properties
|
|
1266
771
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
<
|
|
1270
|
-
|
|
1271
|
-
|
|
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>
|
|
772
|
+
| Name | Type | Description |
|
|
773
|
+
| -------------------------- | ----------------------------------------------------------------------------- | -------------------------------------- |
|
|
774
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The name of the field. |
|
|
775
|
+
| type<sup>\*required</sup> | "text" | A plain text field type discriminator. |
|
|
776
|
+
| value<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | The field's value. |
|
|
1296
777
|
|
|
1297
778
|
### TextFormDataResponseField
|
|
1298
779
|
|
|
@@ -1300,29 +781,11 @@ The field's value.
|
|
|
1300
781
|
|
|
1301
782
|
#### Properties
|
|
1302
783
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
<
|
|
1306
|
-
|
|
1307
|
-
</
|
|
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>
|
|
784
|
+
| Name | Type |
|
|
785
|
+
| -------------------------- | ----------------------------------------------------------------------------- |
|
|
786
|
+
| name<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
787
|
+
| type<sup>\*required</sup> | "text" |
|
|
788
|
+
| value<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> |
|
|
1326
789
|
|
|
1327
790
|
### UnsupportedOperationError
|
|
1328
791
|
|
|
@@ -1330,25 +793,12 @@ The field's value.
|
|
|
1330
793
|
|
|
1331
794
|
#### Properties
|
|
1332
795
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
<
|
|
1336
|
-
|
|
1337
|
-
The error
|
|
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>
|
|
796
|
+
| Name | Type | Description |
|
|
797
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------- | --------------------- |
|
|
798
|
+
| cause | <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</a> | The error root cause. |
|
|
799
|
+
| message<sup>\*required</sup> | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
800
|
+
| name<sup>\*required</sup> | "UnsupportedOperationError" | The error name. |
|
|
801
|
+
| stack | <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | |
|
|
1352
802
|
|
|
1353
803
|
## Variables
|
|
1354
804
|
|