@angular/common 19.2.0-rc.0 → 20.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/common.mjs +142 -118
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +41 -42
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +19 -711
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +246 -731
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +25 -146
- package/package.json +2 -2
- package/testing/index.d.ts +4 -1
- package/upgrade/index.d.ts +1 -1
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v20.0.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -102,8 +102,7 @@ export declare abstract class HttpBackend implements HttpHandler {
|
|
|
102
102
|
* single data type of the response.
|
|
103
103
|
* A single overload version of the method handles each response type.
|
|
104
104
|
* The value of `responseType` cannot be a union, as the combined signature could imply.
|
|
105
|
-
|
|
106
|
-
* TODO(adev): review
|
|
105
|
+
*
|
|
107
106
|
* @usageNotes
|
|
108
107
|
*
|
|
109
108
|
* ### HTTP Request Example
|
|
@@ -168,14 +167,10 @@ export declare class HttpClient {
|
|
|
168
167
|
*/
|
|
169
168
|
request(method: string, url: string, options: {
|
|
170
169
|
body?: any;
|
|
171
|
-
headers?: HttpHeaders |
|
|
172
|
-
[header: string]: string | string[];
|
|
173
|
-
};
|
|
170
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
174
171
|
context?: HttpContext;
|
|
175
172
|
observe?: 'body';
|
|
176
|
-
params?: HttpParams |
|
|
177
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
178
|
-
};
|
|
173
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
179
174
|
reportProgress?: boolean;
|
|
180
175
|
responseType: 'arraybuffer';
|
|
181
176
|
withCredentials?: boolean;
|
|
@@ -195,14 +190,10 @@ export declare class HttpClient {
|
|
|
195
190
|
*/
|
|
196
191
|
request(method: string, url: string, options: {
|
|
197
192
|
body?: any;
|
|
198
|
-
headers?: HttpHeaders |
|
|
199
|
-
[header: string]: string | string[];
|
|
200
|
-
};
|
|
193
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
201
194
|
context?: HttpContext;
|
|
202
195
|
observe?: 'body';
|
|
203
|
-
params?: HttpParams |
|
|
204
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
205
|
-
};
|
|
196
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
206
197
|
reportProgress?: boolean;
|
|
207
198
|
responseType: 'blob';
|
|
208
199
|
withCredentials?: boolean;
|
|
@@ -222,14 +213,10 @@ export declare class HttpClient {
|
|
|
222
213
|
*/
|
|
223
214
|
request(method: string, url: string, options: {
|
|
224
215
|
body?: any;
|
|
225
|
-
headers?: HttpHeaders |
|
|
226
|
-
[header: string]: string | string[];
|
|
227
|
-
};
|
|
216
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
228
217
|
context?: HttpContext;
|
|
229
218
|
observe?: 'body';
|
|
230
|
-
params?: HttpParams |
|
|
231
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
232
|
-
};
|
|
219
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
233
220
|
reportProgress?: boolean;
|
|
234
221
|
responseType: 'text';
|
|
235
222
|
withCredentials?: boolean;
|
|
@@ -250,13 +237,9 @@ export declare class HttpClient {
|
|
|
250
237
|
*/
|
|
251
238
|
request(method: string, url: string, options: {
|
|
252
239
|
body?: any;
|
|
253
|
-
headers?: HttpHeaders |
|
|
254
|
-
[header: string]: string | string[];
|
|
255
|
-
};
|
|
240
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
256
241
|
context?: HttpContext;
|
|
257
|
-
params?: HttpParams |
|
|
258
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
259
|
-
};
|
|
242
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
260
243
|
observe: 'events';
|
|
261
244
|
reportProgress?: boolean;
|
|
262
245
|
responseType: 'arraybuffer';
|
|
@@ -278,14 +261,10 @@ export declare class HttpClient {
|
|
|
278
261
|
*/
|
|
279
262
|
request(method: string, url: string, options: {
|
|
280
263
|
body?: any;
|
|
281
|
-
headers?: HttpHeaders |
|
|
282
|
-
[header: string]: string | string[];
|
|
283
|
-
};
|
|
264
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
284
265
|
observe: 'events';
|
|
285
266
|
context?: HttpContext;
|
|
286
|
-
params?: HttpParams |
|
|
287
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
288
|
-
};
|
|
267
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
289
268
|
reportProgress?: boolean;
|
|
290
269
|
responseType: 'blob';
|
|
291
270
|
withCredentials?: boolean;
|
|
@@ -306,14 +285,10 @@ export declare class HttpClient {
|
|
|
306
285
|
*/
|
|
307
286
|
request(method: string, url: string, options: {
|
|
308
287
|
body?: any;
|
|
309
|
-
headers?: HttpHeaders |
|
|
310
|
-
[header: string]: string | string[];
|
|
311
|
-
};
|
|
288
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
312
289
|
observe: 'events';
|
|
313
290
|
context?: HttpContext;
|
|
314
|
-
params?: HttpParams |
|
|
315
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
316
|
-
};
|
|
291
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
317
292
|
reportProgress?: boolean;
|
|
318
293
|
responseType: 'text';
|
|
319
294
|
withCredentials?: boolean;
|
|
@@ -334,15 +309,11 @@ export declare class HttpClient {
|
|
|
334
309
|
*/
|
|
335
310
|
request(method: string, url: string, options: {
|
|
336
311
|
body?: any;
|
|
337
|
-
headers?: HttpHeaders |
|
|
338
|
-
[header: string]: string | string[];
|
|
339
|
-
};
|
|
312
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
340
313
|
context?: HttpContext;
|
|
341
314
|
reportProgress?: boolean;
|
|
342
315
|
observe: 'events';
|
|
343
|
-
params?: HttpParams |
|
|
344
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
345
|
-
};
|
|
316
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
346
317
|
responseType?: 'json';
|
|
347
318
|
withCredentials?: boolean;
|
|
348
319
|
transferCache?: {
|
|
@@ -362,15 +333,11 @@ export declare class HttpClient {
|
|
|
362
333
|
*/
|
|
363
334
|
request<R>(method: string, url: string, options: {
|
|
364
335
|
body?: any;
|
|
365
|
-
headers?: HttpHeaders |
|
|
366
|
-
[header: string]: string | string[];
|
|
367
|
-
};
|
|
336
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
368
337
|
context?: HttpContext;
|
|
369
338
|
reportProgress?: boolean;
|
|
370
339
|
observe: 'events';
|
|
371
|
-
params?: HttpParams |
|
|
372
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
373
|
-
};
|
|
340
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
374
341
|
responseType?: 'json';
|
|
375
342
|
withCredentials?: boolean;
|
|
376
343
|
transferCache?: {
|
|
@@ -389,14 +356,10 @@ export declare class HttpClient {
|
|
|
389
356
|
*/
|
|
390
357
|
request(method: string, url: string, options: {
|
|
391
358
|
body?: any;
|
|
392
|
-
headers?: HttpHeaders |
|
|
393
|
-
[header: string]: string | string[];
|
|
394
|
-
};
|
|
359
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
395
360
|
observe: 'response';
|
|
396
361
|
context?: HttpContext;
|
|
397
|
-
params?: HttpParams |
|
|
398
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
399
|
-
};
|
|
362
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
400
363
|
reportProgress?: boolean;
|
|
401
364
|
responseType: 'arraybuffer';
|
|
402
365
|
withCredentials?: boolean;
|
|
@@ -415,14 +378,10 @@ export declare class HttpClient {
|
|
|
415
378
|
*/
|
|
416
379
|
request(method: string, url: string, options: {
|
|
417
380
|
body?: any;
|
|
418
|
-
headers?: HttpHeaders |
|
|
419
|
-
[header: string]: string | string[];
|
|
420
|
-
};
|
|
381
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
421
382
|
observe: 'response';
|
|
422
383
|
context?: HttpContext;
|
|
423
|
-
params?: HttpParams |
|
|
424
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
425
|
-
};
|
|
384
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
426
385
|
reportProgress?: boolean;
|
|
427
386
|
responseType: 'blob';
|
|
428
387
|
withCredentials?: boolean;
|
|
@@ -442,14 +401,10 @@ export declare class HttpClient {
|
|
|
442
401
|
*/
|
|
443
402
|
request(method: string, url: string, options: {
|
|
444
403
|
body?: any;
|
|
445
|
-
headers?: HttpHeaders |
|
|
446
|
-
[header: string]: string | string[];
|
|
447
|
-
};
|
|
404
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
448
405
|
observe: 'response';
|
|
449
406
|
context?: HttpContext;
|
|
450
|
-
params?: HttpParams |
|
|
451
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
452
|
-
};
|
|
407
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
453
408
|
reportProgress?: boolean;
|
|
454
409
|
responseType: 'text';
|
|
455
410
|
withCredentials?: boolean;
|
|
@@ -470,15 +425,11 @@ export declare class HttpClient {
|
|
|
470
425
|
*/
|
|
471
426
|
request(method: string, url: string, options: {
|
|
472
427
|
body?: any;
|
|
473
|
-
headers?: HttpHeaders |
|
|
474
|
-
[header: string]: string | string[];
|
|
475
|
-
};
|
|
428
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
476
429
|
context?: HttpContext;
|
|
477
430
|
reportProgress?: boolean;
|
|
478
431
|
observe: 'response';
|
|
479
|
-
params?: HttpParams |
|
|
480
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
481
|
-
};
|
|
432
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
482
433
|
responseType?: 'json';
|
|
483
434
|
withCredentials?: boolean;
|
|
484
435
|
}): Observable<HttpResponse<Object>>;
|
|
@@ -494,15 +445,11 @@ export declare class HttpClient {
|
|
|
494
445
|
*/
|
|
495
446
|
request<R>(method: string, url: string, options: {
|
|
496
447
|
body?: any;
|
|
497
|
-
headers?: HttpHeaders |
|
|
498
|
-
[header: string]: string | string[];
|
|
499
|
-
};
|
|
448
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
500
449
|
context?: HttpContext;
|
|
501
450
|
reportProgress?: boolean;
|
|
502
451
|
observe: 'response';
|
|
503
|
-
params?: HttpParams |
|
|
504
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
505
|
-
};
|
|
452
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
506
453
|
responseType?: 'json';
|
|
507
454
|
withCredentials?: boolean;
|
|
508
455
|
transferCache?: {
|
|
@@ -521,14 +468,10 @@ export declare class HttpClient {
|
|
|
521
468
|
*/
|
|
522
469
|
request(method: string, url: string, options?: {
|
|
523
470
|
body?: any;
|
|
524
|
-
headers?: HttpHeaders |
|
|
525
|
-
[header: string]: string | string[];
|
|
526
|
-
};
|
|
471
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
527
472
|
context?: HttpContext;
|
|
528
473
|
observe?: 'body';
|
|
529
|
-
params?: HttpParams |
|
|
530
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
531
|
-
};
|
|
474
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
532
475
|
responseType?: 'json';
|
|
533
476
|
reportProgress?: boolean;
|
|
534
477
|
withCredentials?: boolean;
|
|
@@ -548,14 +491,10 @@ export declare class HttpClient {
|
|
|
548
491
|
*/
|
|
549
492
|
request<R>(method: string, url: string, options?: {
|
|
550
493
|
body?: any;
|
|
551
|
-
headers?: HttpHeaders |
|
|
552
|
-
[header: string]: string | string[];
|
|
553
|
-
};
|
|
494
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
554
495
|
context?: HttpContext;
|
|
555
496
|
observe?: 'body';
|
|
556
|
-
params?: HttpParams |
|
|
557
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
558
|
-
};
|
|
497
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
559
498
|
responseType?: 'json';
|
|
560
499
|
reportProgress?: boolean;
|
|
561
500
|
withCredentials?: boolean;
|
|
@@ -574,13 +513,9 @@ export declare class HttpClient {
|
|
|
574
513
|
*/
|
|
575
514
|
request(method: string, url: string, options?: {
|
|
576
515
|
body?: any;
|
|
577
|
-
headers?: HttpHeaders |
|
|
578
|
-
[header: string]: string | string[];
|
|
579
|
-
};
|
|
516
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
580
517
|
context?: HttpContext;
|
|
581
|
-
params?: HttpParams |
|
|
582
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
583
|
-
};
|
|
518
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
584
519
|
observe?: 'body' | 'events' | 'response';
|
|
585
520
|
reportProgress?: boolean;
|
|
586
521
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
@@ -599,14 +534,10 @@ export declare class HttpClient {
|
|
|
599
534
|
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
600
535
|
*/
|
|
601
536
|
delete(url: string, options: {
|
|
602
|
-
headers?: HttpHeaders |
|
|
603
|
-
[header: string]: string | string[];
|
|
604
|
-
};
|
|
537
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
605
538
|
context?: HttpContext;
|
|
606
539
|
observe?: 'body';
|
|
607
|
-
params?: HttpParams |
|
|
608
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
609
|
-
};
|
|
540
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
610
541
|
reportProgress?: boolean;
|
|
611
542
|
responseType: 'arraybuffer';
|
|
612
543
|
withCredentials?: boolean;
|
|
@@ -622,14 +553,10 @@ export declare class HttpClient {
|
|
|
622
553
|
* @return An `Observable` of the response body as a `Blob`.
|
|
623
554
|
*/
|
|
624
555
|
delete(url: string, options: {
|
|
625
|
-
headers?: HttpHeaders |
|
|
626
|
-
[header: string]: string | string[];
|
|
627
|
-
};
|
|
556
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
628
557
|
context?: HttpContext;
|
|
629
558
|
observe?: 'body';
|
|
630
|
-
params?: HttpParams |
|
|
631
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
632
|
-
};
|
|
559
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
633
560
|
reportProgress?: boolean;
|
|
634
561
|
responseType: 'blob';
|
|
635
562
|
withCredentials?: boolean;
|
|
@@ -645,14 +572,10 @@ export declare class HttpClient {
|
|
|
645
572
|
* @return An `Observable` of the response, with the response body of type string.
|
|
646
573
|
*/
|
|
647
574
|
delete(url: string, options: {
|
|
648
|
-
headers?: HttpHeaders |
|
|
649
|
-
[header: string]: string | string[];
|
|
650
|
-
};
|
|
575
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
651
576
|
context?: HttpContext;
|
|
652
577
|
observe?: 'body';
|
|
653
|
-
params?: HttpParams |
|
|
654
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
655
|
-
};
|
|
578
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
656
579
|
reportProgress?: boolean;
|
|
657
580
|
responseType: 'text';
|
|
658
581
|
withCredentials?: boolean;
|
|
@@ -669,14 +592,10 @@ export declare class HttpClient {
|
|
|
669
592
|
* with response body as an `ArrayBuffer`.
|
|
670
593
|
*/
|
|
671
594
|
delete(url: string, options: {
|
|
672
|
-
headers?: HttpHeaders |
|
|
673
|
-
[header: string]: string | string[];
|
|
674
|
-
};
|
|
595
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
675
596
|
observe: 'events';
|
|
676
597
|
context?: HttpContext;
|
|
677
|
-
params?: HttpParams |
|
|
678
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
679
|
-
};
|
|
598
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
680
599
|
reportProgress?: boolean;
|
|
681
600
|
responseType: 'arraybuffer';
|
|
682
601
|
withCredentials?: boolean;
|
|
@@ -693,14 +612,10 @@ export declare class HttpClient {
|
|
|
693
612
|
* `Blob`.
|
|
694
613
|
*/
|
|
695
614
|
delete(url: string, options: {
|
|
696
|
-
headers?: HttpHeaders |
|
|
697
|
-
[header: string]: string | string[];
|
|
698
|
-
};
|
|
615
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
699
616
|
observe: 'events';
|
|
700
617
|
context?: HttpContext;
|
|
701
|
-
params?: HttpParams |
|
|
702
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
703
|
-
};
|
|
618
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
704
619
|
reportProgress?: boolean;
|
|
705
620
|
responseType: 'blob';
|
|
706
621
|
withCredentials?: boolean;
|
|
@@ -717,14 +632,10 @@ export declare class HttpClient {
|
|
|
717
632
|
* body of type string.
|
|
718
633
|
*/
|
|
719
634
|
delete(url: string, options: {
|
|
720
|
-
headers?: HttpHeaders |
|
|
721
|
-
[header: string]: string | string[];
|
|
722
|
-
};
|
|
635
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
723
636
|
observe: 'events';
|
|
724
637
|
context?: HttpContext;
|
|
725
|
-
params?: HttpParams |
|
|
726
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
727
|
-
};
|
|
638
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
728
639
|
reportProgress?: boolean;
|
|
729
640
|
responseType: 'text';
|
|
730
641
|
withCredentials?: boolean;
|
|
@@ -741,14 +652,10 @@ export declare class HttpClient {
|
|
|
741
652
|
* type `Object`.
|
|
742
653
|
*/
|
|
743
654
|
delete(url: string, options: {
|
|
744
|
-
headers?: HttpHeaders |
|
|
745
|
-
[header: string]: string | string[];
|
|
746
|
-
};
|
|
655
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
747
656
|
observe: 'events';
|
|
748
657
|
context?: HttpContext;
|
|
749
|
-
params?: HttpParams |
|
|
750
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
751
|
-
};
|
|
658
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
752
659
|
reportProgress?: boolean;
|
|
753
660
|
responseType?: 'json';
|
|
754
661
|
withCredentials?: boolean;
|
|
@@ -765,14 +672,10 @@ export declare class HttpClient {
|
|
|
765
672
|
* body in the requested type.
|
|
766
673
|
*/
|
|
767
674
|
delete<T>(url: string, options: {
|
|
768
|
-
headers?: HttpHeaders |
|
|
769
|
-
[header: string]: string | string[];
|
|
770
|
-
};
|
|
675
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
771
676
|
observe: 'events';
|
|
772
677
|
context?: HttpContext;
|
|
773
|
-
params?: HttpParams |
|
|
774
|
-
[param: string]: string | number | boolean | (string | number | boolean)[];
|
|
775
|
-
};
|
|
678
|
+
params?: HttpParams | Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
776
679
|
reportProgress?: boolean;
|
|
777
680
|
responseType?: 'json';
|
|
778
681
|
withCredentials?: boolean;
|
|
@@ -788,14 +691,10 @@ export declare class HttpClient {
|
|
|
788
691
|
* @return An `Observable` of the full `HttpResponse`, with the response body as an `ArrayBuffer`.
|
|
789
692
|
*/
|
|
790
693
|
delete(url: string, options: {
|
|
791
|
-
headers?: HttpHeaders |
|
|
792
|
-
[header: string]: string | string[];
|
|
793
|
-
};
|
|
694
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
794
695
|
observe: 'response';
|
|
795
696
|
context?: HttpContext;
|
|
796
|
-
params?: HttpParams |
|
|
797
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
798
|
-
};
|
|
697
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
799
698
|
reportProgress?: boolean;
|
|
800
699
|
responseType: 'arraybuffer';
|
|
801
700
|
withCredentials?: boolean;
|
|
@@ -811,14 +710,10 @@ export declare class HttpClient {
|
|
|
811
710
|
* @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.
|
|
812
711
|
*/
|
|
813
712
|
delete(url: string, options: {
|
|
814
|
-
headers?: HttpHeaders |
|
|
815
|
-
[header: string]: string | string[];
|
|
816
|
-
};
|
|
713
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
817
714
|
observe: 'response';
|
|
818
715
|
context?: HttpContext;
|
|
819
|
-
params?: HttpParams |
|
|
820
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
821
|
-
};
|
|
716
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
822
717
|
reportProgress?: boolean;
|
|
823
718
|
responseType: 'blob';
|
|
824
719
|
withCredentials?: boolean;
|
|
@@ -834,14 +729,10 @@ export declare class HttpClient {
|
|
|
834
729
|
* @return An `Observable` of the full `HttpResponse`, with the response body of type string.
|
|
835
730
|
*/
|
|
836
731
|
delete(url: string, options: {
|
|
837
|
-
headers?: HttpHeaders |
|
|
838
|
-
[header: string]: string | string[];
|
|
839
|
-
};
|
|
732
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
840
733
|
observe: 'response';
|
|
841
734
|
context?: HttpContext;
|
|
842
|
-
params?: HttpParams |
|
|
843
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
844
|
-
};
|
|
735
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
845
736
|
reportProgress?: boolean;
|
|
846
737
|
responseType: 'text';
|
|
847
738
|
withCredentials?: boolean;
|
|
@@ -858,14 +749,10 @@ export declare class HttpClient {
|
|
|
858
749
|
*
|
|
859
750
|
*/
|
|
860
751
|
delete(url: string, options: {
|
|
861
|
-
headers?: HttpHeaders |
|
|
862
|
-
[header: string]: string | string[];
|
|
863
|
-
};
|
|
752
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
864
753
|
observe: 'response';
|
|
865
754
|
context?: HttpContext;
|
|
866
|
-
params?: HttpParams |
|
|
867
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
868
|
-
};
|
|
755
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
869
756
|
reportProgress?: boolean;
|
|
870
757
|
responseType?: 'json';
|
|
871
758
|
withCredentials?: boolean;
|
|
@@ -881,14 +768,10 @@ export declare class HttpClient {
|
|
|
881
768
|
* @return An `Observable` of the `HttpResponse`, with the response body of the requested type.
|
|
882
769
|
*/
|
|
883
770
|
delete<T>(url: string, options: {
|
|
884
|
-
headers?: HttpHeaders |
|
|
885
|
-
[header: string]: string | string[];
|
|
886
|
-
};
|
|
771
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
887
772
|
observe: 'response';
|
|
888
773
|
context?: HttpContext;
|
|
889
|
-
params?: HttpParams |
|
|
890
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
891
|
-
};
|
|
774
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
892
775
|
reportProgress?: boolean;
|
|
893
776
|
responseType?: 'json';
|
|
894
777
|
withCredentials?: boolean;
|
|
@@ -904,14 +787,10 @@ export declare class HttpClient {
|
|
|
904
787
|
* @return An `Observable` of the response, with the response body of type `Object`.
|
|
905
788
|
*/
|
|
906
789
|
delete(url: string, options?: {
|
|
907
|
-
headers?: HttpHeaders |
|
|
908
|
-
[header: string]: string | string[];
|
|
909
|
-
};
|
|
790
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
910
791
|
context?: HttpContext;
|
|
911
792
|
observe?: 'body';
|
|
912
|
-
params?: HttpParams |
|
|
913
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
914
|
-
};
|
|
793
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
915
794
|
reportProgress?: boolean;
|
|
916
795
|
responseType?: 'json';
|
|
917
796
|
withCredentials?: boolean;
|
|
@@ -927,14 +806,10 @@ export declare class HttpClient {
|
|
|
927
806
|
* @return An `Observable` of the `HttpResponse`, with response body in the requested type.
|
|
928
807
|
*/
|
|
929
808
|
delete<T>(url: string, options?: {
|
|
930
|
-
headers?: HttpHeaders |
|
|
931
|
-
[header: string]: string | string[];
|
|
932
|
-
};
|
|
809
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
933
810
|
context?: HttpContext;
|
|
934
811
|
observe?: 'body';
|
|
935
|
-
params?: HttpParams |
|
|
936
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
937
|
-
};
|
|
812
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
938
813
|
reportProgress?: boolean;
|
|
939
814
|
responseType?: 'json';
|
|
940
815
|
withCredentials?: boolean;
|
|
@@ -950,14 +825,10 @@ export declare class HttpClient {
|
|
|
950
825
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
951
826
|
*/
|
|
952
827
|
get(url: string, options: {
|
|
953
|
-
headers?: HttpHeaders |
|
|
954
|
-
[header: string]: string | string[];
|
|
955
|
-
};
|
|
828
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
956
829
|
context?: HttpContext;
|
|
957
830
|
observe?: 'body';
|
|
958
|
-
params?: HttpParams |
|
|
959
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
960
|
-
};
|
|
831
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
961
832
|
reportProgress?: boolean;
|
|
962
833
|
responseType: 'arraybuffer';
|
|
963
834
|
withCredentials?: boolean;
|
|
@@ -975,14 +846,10 @@ export declare class HttpClient {
|
|
|
975
846
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
976
847
|
*/
|
|
977
848
|
get(url: string, options: {
|
|
978
|
-
headers?: HttpHeaders |
|
|
979
|
-
[header: string]: string | string[];
|
|
980
|
-
};
|
|
849
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
981
850
|
context?: HttpContext;
|
|
982
851
|
observe?: 'body';
|
|
983
|
-
params?: HttpParams |
|
|
984
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
985
|
-
};
|
|
852
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
986
853
|
reportProgress?: boolean;
|
|
987
854
|
responseType: 'blob';
|
|
988
855
|
withCredentials?: boolean;
|
|
@@ -1000,14 +867,10 @@ export declare class HttpClient {
|
|
|
1000
867
|
* @return An `Observable` of the response, with the response body of type string.
|
|
1001
868
|
*/
|
|
1002
869
|
get(url: string, options: {
|
|
1003
|
-
headers?: HttpHeaders |
|
|
1004
|
-
[header: string]: string | string[];
|
|
1005
|
-
};
|
|
870
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1006
871
|
context?: HttpContext;
|
|
1007
872
|
observe?: 'body';
|
|
1008
|
-
params?: HttpParams |
|
|
1009
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1010
|
-
};
|
|
873
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1011
874
|
reportProgress?: boolean;
|
|
1012
875
|
responseType: 'text';
|
|
1013
876
|
withCredentials?: boolean;
|
|
@@ -1026,14 +889,10 @@ export declare class HttpClient {
|
|
|
1026
889
|
* body as an `ArrayBuffer`.
|
|
1027
890
|
*/
|
|
1028
891
|
get(url: string, options: {
|
|
1029
|
-
headers?: HttpHeaders |
|
|
1030
|
-
[header: string]: string | string[];
|
|
1031
|
-
};
|
|
892
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1032
893
|
observe: 'events';
|
|
1033
894
|
context?: HttpContext;
|
|
1034
|
-
params?: HttpParams |
|
|
1035
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1036
|
-
};
|
|
895
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1037
896
|
reportProgress?: boolean;
|
|
1038
897
|
responseType: 'arraybuffer';
|
|
1039
898
|
withCredentials?: boolean;
|
|
@@ -1051,14 +910,10 @@ export declare class HttpClient {
|
|
|
1051
910
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
1052
911
|
*/
|
|
1053
912
|
get(url: string, options: {
|
|
1054
|
-
headers?: HttpHeaders |
|
|
1055
|
-
[header: string]: string | string[];
|
|
1056
|
-
};
|
|
913
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1057
914
|
observe: 'events';
|
|
1058
915
|
context?: HttpContext;
|
|
1059
|
-
params?: HttpParams |
|
|
1060
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1061
|
-
};
|
|
916
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1062
917
|
reportProgress?: boolean;
|
|
1063
918
|
responseType: 'blob';
|
|
1064
919
|
withCredentials?: boolean;
|
|
@@ -1076,14 +931,10 @@ export declare class HttpClient {
|
|
|
1076
931
|
* @return An `Observable` of the response, with the response body of type string.
|
|
1077
932
|
*/
|
|
1078
933
|
get(url: string, options: {
|
|
1079
|
-
headers?: HttpHeaders |
|
|
1080
|
-
[header: string]: string | string[];
|
|
1081
|
-
};
|
|
934
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1082
935
|
observe: 'events';
|
|
1083
936
|
context?: HttpContext;
|
|
1084
|
-
params?: HttpParams |
|
|
1085
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1086
|
-
};
|
|
937
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1087
938
|
reportProgress?: boolean;
|
|
1088
939
|
responseType: 'text';
|
|
1089
940
|
withCredentials?: boolean;
|
|
@@ -1101,14 +952,10 @@ export declare class HttpClient {
|
|
|
1101
952
|
* @return An `Observable` of the response, with the response body of type `Object`.
|
|
1102
953
|
*/
|
|
1103
954
|
get(url: string, options: {
|
|
1104
|
-
headers?: HttpHeaders |
|
|
1105
|
-
[header: string]: string | string[];
|
|
1106
|
-
};
|
|
955
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1107
956
|
observe: 'events';
|
|
1108
957
|
context?: HttpContext;
|
|
1109
|
-
params?: HttpParams |
|
|
1110
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1111
|
-
};
|
|
958
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1112
959
|
reportProgress?: boolean;
|
|
1113
960
|
responseType?: 'json';
|
|
1114
961
|
withCredentials?: boolean;
|
|
@@ -1126,14 +973,10 @@ export declare class HttpClient {
|
|
|
1126
973
|
* @return An `Observable` of the response, with a response body in the requested type.
|
|
1127
974
|
*/
|
|
1128
975
|
get<T>(url: string, options: {
|
|
1129
|
-
headers?: HttpHeaders |
|
|
1130
|
-
[header: string]: string | string[];
|
|
1131
|
-
};
|
|
976
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1132
977
|
observe: 'events';
|
|
1133
978
|
context?: HttpContext;
|
|
1134
|
-
params?: HttpParams |
|
|
1135
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1136
|
-
};
|
|
979
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1137
980
|
reportProgress?: boolean;
|
|
1138
981
|
responseType?: 'json';
|
|
1139
982
|
withCredentials?: boolean;
|
|
@@ -1152,14 +995,10 @@ export declare class HttpClient {
|
|
|
1152
995
|
* with the response body as an `ArrayBuffer`.
|
|
1153
996
|
*/
|
|
1154
997
|
get(url: string, options: {
|
|
1155
|
-
headers?: HttpHeaders |
|
|
1156
|
-
[header: string]: string | string[];
|
|
1157
|
-
};
|
|
998
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1158
999
|
observe: 'response';
|
|
1159
1000
|
context?: HttpContext;
|
|
1160
|
-
params?: HttpParams |
|
|
1161
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1162
|
-
};
|
|
1001
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1163
1002
|
reportProgress?: boolean;
|
|
1164
1003
|
responseType: 'arraybuffer';
|
|
1165
1004
|
withCredentials?: boolean;
|
|
@@ -1178,14 +1017,10 @@ export declare class HttpClient {
|
|
|
1178
1017
|
* with the response body as a `Blob`.
|
|
1179
1018
|
*/
|
|
1180
1019
|
get(url: string, options: {
|
|
1181
|
-
headers?: HttpHeaders |
|
|
1182
|
-
[header: string]: string | string[];
|
|
1183
|
-
};
|
|
1020
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1184
1021
|
observe: 'response';
|
|
1185
1022
|
context?: HttpContext;
|
|
1186
|
-
params?: HttpParams |
|
|
1187
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1188
|
-
};
|
|
1023
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1189
1024
|
reportProgress?: boolean;
|
|
1190
1025
|
responseType: 'blob';
|
|
1191
1026
|
withCredentials?: boolean;
|
|
@@ -1204,14 +1039,10 @@ export declare class HttpClient {
|
|
|
1204
1039
|
* with the response body of type string.
|
|
1205
1040
|
*/
|
|
1206
1041
|
get(url: string, options: {
|
|
1207
|
-
headers?: HttpHeaders |
|
|
1208
|
-
[header: string]: string | string[];
|
|
1209
|
-
};
|
|
1042
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1210
1043
|
observe: 'response';
|
|
1211
1044
|
context?: HttpContext;
|
|
1212
|
-
params?: HttpParams |
|
|
1213
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1214
|
-
};
|
|
1045
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1215
1046
|
reportProgress?: boolean;
|
|
1216
1047
|
responseType: 'text';
|
|
1217
1048
|
withCredentials?: boolean;
|
|
@@ -1230,14 +1061,10 @@ export declare class HttpClient {
|
|
|
1230
1061
|
* with the response body of type `Object`.
|
|
1231
1062
|
*/
|
|
1232
1063
|
get(url: string, options: {
|
|
1233
|
-
headers?: HttpHeaders |
|
|
1234
|
-
[header: string]: string | string[];
|
|
1235
|
-
};
|
|
1064
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1236
1065
|
observe: 'response';
|
|
1237
1066
|
context?: HttpContext;
|
|
1238
|
-
params?: HttpParams |
|
|
1239
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1240
|
-
};
|
|
1067
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1241
1068
|
reportProgress?: boolean;
|
|
1242
1069
|
responseType?: 'json';
|
|
1243
1070
|
withCredentials?: boolean;
|
|
@@ -1256,14 +1083,10 @@ export declare class HttpClient {
|
|
|
1256
1083
|
* with a response body in the requested type.
|
|
1257
1084
|
*/
|
|
1258
1085
|
get<T>(url: string, options: {
|
|
1259
|
-
headers?: HttpHeaders |
|
|
1260
|
-
[header: string]: string | string[];
|
|
1261
|
-
};
|
|
1086
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1262
1087
|
observe: 'response';
|
|
1263
1088
|
context?: HttpContext;
|
|
1264
|
-
params?: HttpParams |
|
|
1265
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1266
|
-
};
|
|
1089
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1267
1090
|
reportProgress?: boolean;
|
|
1268
1091
|
responseType?: 'json';
|
|
1269
1092
|
withCredentials?: boolean;
|
|
@@ -1282,14 +1105,10 @@ export declare class HttpClient {
|
|
|
1282
1105
|
* @return An `Observable` of the response body as a JavaScript object.
|
|
1283
1106
|
*/
|
|
1284
1107
|
get(url: string, options?: {
|
|
1285
|
-
headers?: HttpHeaders |
|
|
1286
|
-
[header: string]: string | string[];
|
|
1287
|
-
};
|
|
1108
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1288
1109
|
context?: HttpContext;
|
|
1289
1110
|
observe?: 'body';
|
|
1290
|
-
params?: HttpParams |
|
|
1291
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1292
|
-
};
|
|
1111
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1293
1112
|
reportProgress?: boolean;
|
|
1294
1113
|
responseType?: 'json';
|
|
1295
1114
|
withCredentials?: boolean;
|
|
@@ -1307,14 +1126,10 @@ export declare class HttpClient {
|
|
|
1307
1126
|
* @return An `Observable` of the `HttpResponse`, with a response body in the requested type.
|
|
1308
1127
|
*/
|
|
1309
1128
|
get<T>(url: string, options?: {
|
|
1310
|
-
headers?: HttpHeaders |
|
|
1311
|
-
[header: string]: string | string[];
|
|
1312
|
-
};
|
|
1129
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1313
1130
|
context?: HttpContext;
|
|
1314
1131
|
observe?: 'body';
|
|
1315
|
-
params?: HttpParams |
|
|
1316
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1317
|
-
};
|
|
1132
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1318
1133
|
reportProgress?: boolean;
|
|
1319
1134
|
responseType?: 'json';
|
|
1320
1135
|
withCredentials?: boolean;
|
|
@@ -1332,14 +1147,10 @@ export declare class HttpClient {
|
|
|
1332
1147
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1333
1148
|
*/
|
|
1334
1149
|
head(url: string, options: {
|
|
1335
|
-
headers?: HttpHeaders |
|
|
1336
|
-
[header: string]: string | string[];
|
|
1337
|
-
};
|
|
1150
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1338
1151
|
context?: HttpContext;
|
|
1339
1152
|
observe?: 'body';
|
|
1340
|
-
params?: HttpParams |
|
|
1341
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1342
|
-
};
|
|
1153
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1343
1154
|
reportProgress?: boolean;
|
|
1344
1155
|
responseType: 'arraybuffer';
|
|
1345
1156
|
withCredentials?: boolean;
|
|
@@ -1357,14 +1168,10 @@ export declare class HttpClient {
|
|
|
1357
1168
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
1358
1169
|
*/
|
|
1359
1170
|
head(url: string, options: {
|
|
1360
|
-
headers?: HttpHeaders |
|
|
1361
|
-
[header: string]: string | string[];
|
|
1362
|
-
};
|
|
1171
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1363
1172
|
context?: HttpContext;
|
|
1364
1173
|
observe?: 'body';
|
|
1365
|
-
params?: HttpParams |
|
|
1366
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1367
|
-
};
|
|
1174
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1368
1175
|
reportProgress?: boolean;
|
|
1369
1176
|
responseType: 'blob';
|
|
1370
1177
|
withCredentials?: boolean;
|
|
@@ -1382,14 +1189,10 @@ export declare class HttpClient {
|
|
|
1382
1189
|
* @return An `Observable` of the response, with the response body of type string.
|
|
1383
1190
|
*/
|
|
1384
1191
|
head(url: string, options: {
|
|
1385
|
-
headers?: HttpHeaders |
|
|
1386
|
-
[header: string]: string | string[];
|
|
1387
|
-
};
|
|
1192
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1388
1193
|
context?: HttpContext;
|
|
1389
1194
|
observe?: 'body';
|
|
1390
|
-
params?: HttpParams |
|
|
1391
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1392
|
-
};
|
|
1195
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1393
1196
|
reportProgress?: boolean;
|
|
1394
1197
|
responseType: 'text';
|
|
1395
1198
|
withCredentials?: boolean;
|
|
@@ -1408,14 +1211,10 @@ export declare class HttpClient {
|
|
|
1408
1211
|
* with the response body as an `ArrayBuffer`.
|
|
1409
1212
|
*/
|
|
1410
1213
|
head(url: string, options: {
|
|
1411
|
-
headers?: HttpHeaders |
|
|
1412
|
-
[header: string]: string | string[];
|
|
1413
|
-
};
|
|
1214
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1414
1215
|
observe: 'events';
|
|
1415
1216
|
context?: HttpContext;
|
|
1416
|
-
params?: HttpParams |
|
|
1417
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1418
|
-
};
|
|
1217
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1419
1218
|
reportProgress?: boolean;
|
|
1420
1219
|
responseType: 'arraybuffer';
|
|
1421
1220
|
withCredentials?: boolean;
|
|
@@ -1434,14 +1233,10 @@ export declare class HttpClient {
|
|
|
1434
1233
|
* with the response body as a `Blob`.
|
|
1435
1234
|
*/
|
|
1436
1235
|
head(url: string, options: {
|
|
1437
|
-
headers?: HttpHeaders |
|
|
1438
|
-
[header: string]: string | string[];
|
|
1439
|
-
};
|
|
1236
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1440
1237
|
observe: 'events';
|
|
1441
1238
|
context?: HttpContext;
|
|
1442
|
-
params?: HttpParams |
|
|
1443
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1444
|
-
};
|
|
1239
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1445
1240
|
reportProgress?: boolean;
|
|
1446
1241
|
responseType: 'blob';
|
|
1447
1242
|
withCredentials?: boolean;
|
|
@@ -1460,14 +1255,10 @@ export declare class HttpClient {
|
|
|
1460
1255
|
* string.
|
|
1461
1256
|
*/
|
|
1462
1257
|
head(url: string, options: {
|
|
1463
|
-
headers?: HttpHeaders |
|
|
1464
|
-
[header: string]: string | string[];
|
|
1465
|
-
};
|
|
1258
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1466
1259
|
observe: 'events';
|
|
1467
1260
|
context?: HttpContext;
|
|
1468
|
-
params?: HttpParams |
|
|
1469
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1470
|
-
};
|
|
1261
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1471
1262
|
reportProgress?: boolean;
|
|
1472
1263
|
responseType: 'text';
|
|
1473
1264
|
withCredentials?: boolean;
|
|
@@ -1486,14 +1277,10 @@ export declare class HttpClient {
|
|
|
1486
1277
|
* type `Object`.
|
|
1487
1278
|
*/
|
|
1488
1279
|
head(url: string, options: {
|
|
1489
|
-
headers?: HttpHeaders |
|
|
1490
|
-
[header: string]: string | string[];
|
|
1491
|
-
};
|
|
1280
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1492
1281
|
observe: 'events';
|
|
1493
1282
|
context?: HttpContext;
|
|
1494
|
-
params?: HttpParams |
|
|
1495
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1496
|
-
};
|
|
1283
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1497
1284
|
reportProgress?: boolean;
|
|
1498
1285
|
responseType?: 'json';
|
|
1499
1286
|
withCredentials?: boolean;
|
|
@@ -1512,14 +1299,10 @@ export declare class HttpClient {
|
|
|
1512
1299
|
* @param options The HTTP options to send with the request.
|
|
1513
1300
|
*/
|
|
1514
1301
|
head<T>(url: string, options: {
|
|
1515
|
-
headers?: HttpHeaders |
|
|
1516
|
-
[header: string]: string | string[];
|
|
1517
|
-
};
|
|
1302
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1518
1303
|
observe: 'events';
|
|
1519
1304
|
context?: HttpContext;
|
|
1520
|
-
params?: HttpParams |
|
|
1521
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1522
|
-
};
|
|
1305
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1523
1306
|
reportProgress?: boolean;
|
|
1524
1307
|
responseType?: 'json';
|
|
1525
1308
|
withCredentials?: boolean;
|
|
@@ -1538,14 +1321,10 @@ export declare class HttpClient {
|
|
|
1538
1321
|
* with the response body as an `ArrayBuffer`.
|
|
1539
1322
|
*/
|
|
1540
1323
|
head(url: string, options: {
|
|
1541
|
-
headers?: HttpHeaders |
|
|
1542
|
-
[header: string]: string | string[];
|
|
1543
|
-
};
|
|
1324
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1544
1325
|
observe: 'response';
|
|
1545
1326
|
context?: HttpContext;
|
|
1546
|
-
params?: HttpParams |
|
|
1547
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1548
|
-
};
|
|
1327
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1549
1328
|
reportProgress?: boolean;
|
|
1550
1329
|
responseType: 'arraybuffer';
|
|
1551
1330
|
withCredentials?: boolean;
|
|
@@ -1564,14 +1343,10 @@ export declare class HttpClient {
|
|
|
1564
1343
|
* with the response body as a blob.
|
|
1565
1344
|
*/
|
|
1566
1345
|
head(url: string, options: {
|
|
1567
|
-
headers?: HttpHeaders |
|
|
1568
|
-
[header: string]: string | string[];
|
|
1569
|
-
};
|
|
1346
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1570
1347
|
observe: 'response';
|
|
1571
1348
|
context?: HttpContext;
|
|
1572
|
-
params?: HttpParams |
|
|
1573
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1574
|
-
};
|
|
1349
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1575
1350
|
reportProgress?: boolean;
|
|
1576
1351
|
responseType: 'blob';
|
|
1577
1352
|
withCredentials?: boolean;
|
|
@@ -1590,14 +1365,10 @@ export declare class HttpClient {
|
|
|
1590
1365
|
* with the response body of type string.
|
|
1591
1366
|
*/
|
|
1592
1367
|
head(url: string, options: {
|
|
1593
|
-
headers?: HttpHeaders |
|
|
1594
|
-
[header: string]: string | string[];
|
|
1595
|
-
};
|
|
1368
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1596
1369
|
observe: 'response';
|
|
1597
1370
|
context?: HttpContext;
|
|
1598
|
-
params?: HttpParams |
|
|
1599
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1600
|
-
};
|
|
1371
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1601
1372
|
reportProgress?: boolean;
|
|
1602
1373
|
responseType: 'text';
|
|
1603
1374
|
withCredentials?: boolean;
|
|
@@ -1616,14 +1387,10 @@ export declare class HttpClient {
|
|
|
1616
1387
|
* with the response body of type `Object`.
|
|
1617
1388
|
*/
|
|
1618
1389
|
head(url: string, options: {
|
|
1619
|
-
headers?: HttpHeaders |
|
|
1620
|
-
[header: string]: string | string[];
|
|
1621
|
-
};
|
|
1390
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1622
1391
|
observe: 'response';
|
|
1623
1392
|
context?: HttpContext;
|
|
1624
|
-
params?: HttpParams |
|
|
1625
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1626
|
-
};
|
|
1393
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1627
1394
|
reportProgress?: boolean;
|
|
1628
1395
|
responseType?: 'json';
|
|
1629
1396
|
withCredentials?: boolean;
|
|
@@ -1642,14 +1409,10 @@ export declare class HttpClient {
|
|
|
1642
1409
|
* with a response body of the requested type.
|
|
1643
1410
|
*/
|
|
1644
1411
|
head<T>(url: string, options: {
|
|
1645
|
-
headers?: HttpHeaders |
|
|
1646
|
-
[header: string]: string | string[];
|
|
1647
|
-
};
|
|
1412
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1648
1413
|
observe: 'response';
|
|
1649
1414
|
context?: HttpContext;
|
|
1650
|
-
params?: HttpParams |
|
|
1651
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1652
|
-
};
|
|
1415
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1653
1416
|
reportProgress?: boolean;
|
|
1654
1417
|
responseType?: 'json';
|
|
1655
1418
|
withCredentials?: boolean;
|
|
@@ -1668,14 +1431,10 @@ export declare class HttpClient {
|
|
|
1668
1431
|
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
1669
1432
|
*/
|
|
1670
1433
|
head(url: string, options?: {
|
|
1671
|
-
headers?: HttpHeaders |
|
|
1672
|
-
[header: string]: string | string[];
|
|
1673
|
-
};
|
|
1434
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1674
1435
|
context?: HttpContext;
|
|
1675
1436
|
observe?: 'body';
|
|
1676
|
-
params?: HttpParams |
|
|
1677
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1678
|
-
};
|
|
1437
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1679
1438
|
reportProgress?: boolean;
|
|
1680
1439
|
responseType?: 'json';
|
|
1681
1440
|
withCredentials?: boolean;
|
|
@@ -1694,14 +1453,10 @@ export declare class HttpClient {
|
|
|
1694
1453
|
* with a response body of the given type.
|
|
1695
1454
|
*/
|
|
1696
1455
|
head<T>(url: string, options?: {
|
|
1697
|
-
headers?: HttpHeaders |
|
|
1698
|
-
[header: string]: string | string[];
|
|
1699
|
-
};
|
|
1456
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1700
1457
|
context?: HttpContext;
|
|
1701
1458
|
observe?: 'body';
|
|
1702
|
-
params?: HttpParams |
|
|
1703
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1704
|
-
};
|
|
1459
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1705
1460
|
reportProgress?: boolean;
|
|
1706
1461
|
responseType?: 'json';
|
|
1707
1462
|
withCredentials?: boolean;
|
|
@@ -1741,14 +1496,10 @@ export declare class HttpClient {
|
|
|
1741
1496
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1742
1497
|
*/
|
|
1743
1498
|
options(url: string, options: {
|
|
1744
|
-
headers?: HttpHeaders |
|
|
1745
|
-
[header: string]: string | string[];
|
|
1746
|
-
};
|
|
1499
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1747
1500
|
context?: HttpContext;
|
|
1748
1501
|
observe?: 'body';
|
|
1749
|
-
params?: HttpParams |
|
|
1750
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1751
|
-
};
|
|
1502
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1752
1503
|
reportProgress?: boolean;
|
|
1753
1504
|
responseType: 'arraybuffer';
|
|
1754
1505
|
withCredentials?: boolean;
|
|
@@ -1763,14 +1514,10 @@ export declare class HttpClient {
|
|
|
1763
1514
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
1764
1515
|
*/
|
|
1765
1516
|
options(url: string, options: {
|
|
1766
|
-
headers?: HttpHeaders |
|
|
1767
|
-
[header: string]: string | string[];
|
|
1768
|
-
};
|
|
1517
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1769
1518
|
context?: HttpContext;
|
|
1770
1519
|
observe?: 'body';
|
|
1771
|
-
params?: HttpParams |
|
|
1772
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1773
|
-
};
|
|
1520
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1774
1521
|
reportProgress?: boolean;
|
|
1775
1522
|
responseType: 'blob';
|
|
1776
1523
|
withCredentials?: boolean;
|
|
@@ -1785,14 +1532,10 @@ export declare class HttpClient {
|
|
|
1785
1532
|
* @return An `Observable` of the response, with the response body of type string.
|
|
1786
1533
|
*/
|
|
1787
1534
|
options(url: string, options: {
|
|
1788
|
-
headers?: HttpHeaders |
|
|
1789
|
-
[header: string]: string | string[];
|
|
1790
|
-
};
|
|
1535
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1791
1536
|
context?: HttpContext;
|
|
1792
1537
|
observe?: 'body';
|
|
1793
|
-
params?: HttpParams |
|
|
1794
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1795
|
-
};
|
|
1538
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1796
1539
|
reportProgress?: boolean;
|
|
1797
1540
|
responseType: 'text';
|
|
1798
1541
|
withCredentials?: boolean;
|
|
@@ -1808,14 +1551,10 @@ export declare class HttpClient {
|
|
|
1808
1551
|
* with the response body as an `ArrayBuffer`.
|
|
1809
1552
|
*/
|
|
1810
1553
|
options(url: string, options: {
|
|
1811
|
-
headers?: HttpHeaders |
|
|
1812
|
-
[header: string]: string | string[];
|
|
1813
|
-
};
|
|
1554
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1814
1555
|
observe: 'events';
|
|
1815
1556
|
context?: HttpContext;
|
|
1816
|
-
params?: HttpParams |
|
|
1817
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1818
|
-
};
|
|
1557
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1819
1558
|
reportProgress?: boolean;
|
|
1820
1559
|
responseType: 'arraybuffer';
|
|
1821
1560
|
withCredentials?: boolean;
|
|
@@ -1831,14 +1570,10 @@ export declare class HttpClient {
|
|
|
1831
1570
|
* with the response body as a `Blob`.
|
|
1832
1571
|
*/
|
|
1833
1572
|
options(url: string, options: {
|
|
1834
|
-
headers?: HttpHeaders |
|
|
1835
|
-
[header: string]: string | string[];
|
|
1836
|
-
};
|
|
1573
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1837
1574
|
observe: 'events';
|
|
1838
1575
|
context?: HttpContext;
|
|
1839
|
-
params?: HttpParams |
|
|
1840
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1841
|
-
};
|
|
1576
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1842
1577
|
reportProgress?: boolean;
|
|
1843
1578
|
responseType: 'blob';
|
|
1844
1579
|
withCredentials?: boolean;
|
|
@@ -1854,14 +1589,10 @@ export declare class HttpClient {
|
|
|
1854
1589
|
* with the response body of type string.
|
|
1855
1590
|
*/
|
|
1856
1591
|
options(url: string, options: {
|
|
1857
|
-
headers?: HttpHeaders |
|
|
1858
|
-
[header: string]: string | string[];
|
|
1859
|
-
};
|
|
1592
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1860
1593
|
observe: 'events';
|
|
1861
1594
|
context?: HttpContext;
|
|
1862
|
-
params?: HttpParams |
|
|
1863
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1864
|
-
};
|
|
1595
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1865
1596
|
reportProgress?: boolean;
|
|
1866
1597
|
responseType: 'text';
|
|
1867
1598
|
withCredentials?: boolean;
|
|
@@ -1877,14 +1608,10 @@ export declare class HttpClient {
|
|
|
1877
1608
|
* body of type `Object`.
|
|
1878
1609
|
*/
|
|
1879
1610
|
options(url: string, options: {
|
|
1880
|
-
headers?: HttpHeaders |
|
|
1881
|
-
[header: string]: string | string[];
|
|
1882
|
-
};
|
|
1611
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1883
1612
|
observe: 'events';
|
|
1884
1613
|
context?: HttpContext;
|
|
1885
|
-
params?: HttpParams |
|
|
1886
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1887
|
-
};
|
|
1614
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1888
1615
|
reportProgress?: boolean;
|
|
1889
1616
|
responseType?: 'json';
|
|
1890
1617
|
withCredentials?: boolean;
|
|
@@ -1900,14 +1627,10 @@ export declare class HttpClient {
|
|
|
1900
1627
|
* with a response body in the requested type.
|
|
1901
1628
|
*/
|
|
1902
1629
|
options<T>(url: string, options: {
|
|
1903
|
-
headers?: HttpHeaders |
|
|
1904
|
-
[header: string]: string | string[];
|
|
1905
|
-
};
|
|
1630
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1906
1631
|
observe: 'events';
|
|
1907
1632
|
context?: HttpContext;
|
|
1908
|
-
params?: HttpParams |
|
|
1909
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1910
|
-
};
|
|
1633
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1911
1634
|
reportProgress?: boolean;
|
|
1912
1635
|
responseType?: 'json';
|
|
1913
1636
|
withCredentials?: boolean;
|
|
@@ -1923,14 +1646,10 @@ export declare class HttpClient {
|
|
|
1923
1646
|
* with the response body as an `ArrayBuffer`.
|
|
1924
1647
|
*/
|
|
1925
1648
|
options(url: string, options: {
|
|
1926
|
-
headers?: HttpHeaders |
|
|
1927
|
-
[header: string]: string | string[];
|
|
1928
|
-
};
|
|
1649
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1929
1650
|
observe: 'response';
|
|
1930
1651
|
context?: HttpContext;
|
|
1931
|
-
params?: HttpParams |
|
|
1932
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1933
|
-
};
|
|
1652
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1934
1653
|
reportProgress?: boolean;
|
|
1935
1654
|
responseType: 'arraybuffer';
|
|
1936
1655
|
withCredentials?: boolean;
|
|
@@ -1946,14 +1665,10 @@ export declare class HttpClient {
|
|
|
1946
1665
|
* with the response body as a `Blob`.
|
|
1947
1666
|
*/
|
|
1948
1667
|
options(url: string, options: {
|
|
1949
|
-
headers?: HttpHeaders |
|
|
1950
|
-
[header: string]: string | string[];
|
|
1951
|
-
};
|
|
1668
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1952
1669
|
observe: 'response';
|
|
1953
1670
|
context?: HttpContext;
|
|
1954
|
-
params?: HttpParams |
|
|
1955
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1956
|
-
};
|
|
1671
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1957
1672
|
reportProgress?: boolean;
|
|
1958
1673
|
responseType: 'blob';
|
|
1959
1674
|
withCredentials?: boolean;
|
|
@@ -1969,14 +1684,10 @@ export declare class HttpClient {
|
|
|
1969
1684
|
* with the response body of type string.
|
|
1970
1685
|
*/
|
|
1971
1686
|
options(url: string, options: {
|
|
1972
|
-
headers?: HttpHeaders |
|
|
1973
|
-
[header: string]: string | string[];
|
|
1974
|
-
};
|
|
1687
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1975
1688
|
observe: 'response';
|
|
1976
1689
|
context?: HttpContext;
|
|
1977
|
-
params?: HttpParams |
|
|
1978
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
1979
|
-
};
|
|
1690
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
1980
1691
|
reportProgress?: boolean;
|
|
1981
1692
|
responseType: 'text';
|
|
1982
1693
|
withCredentials?: boolean;
|
|
@@ -1992,14 +1703,10 @@ export declare class HttpClient {
|
|
|
1992
1703
|
* with the response body of type `Object`.
|
|
1993
1704
|
*/
|
|
1994
1705
|
options(url: string, options: {
|
|
1995
|
-
headers?: HttpHeaders |
|
|
1996
|
-
[header: string]: string | string[];
|
|
1997
|
-
};
|
|
1706
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
1998
1707
|
observe: 'response';
|
|
1999
1708
|
context?: HttpContext;
|
|
2000
|
-
params?: HttpParams |
|
|
2001
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2002
|
-
};
|
|
1709
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2003
1710
|
reportProgress?: boolean;
|
|
2004
1711
|
responseType?: 'json';
|
|
2005
1712
|
withCredentials?: boolean;
|
|
@@ -2015,14 +1722,10 @@ export declare class HttpClient {
|
|
|
2015
1722
|
* with a response body in the requested type.
|
|
2016
1723
|
*/
|
|
2017
1724
|
options<T>(url: string, options: {
|
|
2018
|
-
headers?: HttpHeaders |
|
|
2019
|
-
[header: string]: string | string[];
|
|
2020
|
-
};
|
|
1725
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2021
1726
|
observe: 'response';
|
|
2022
1727
|
context?: HttpContext;
|
|
2023
|
-
params?: HttpParams |
|
|
2024
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2025
|
-
};
|
|
1728
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2026
1729
|
reportProgress?: boolean;
|
|
2027
1730
|
responseType?: 'json';
|
|
2028
1731
|
withCredentials?: boolean;
|
|
@@ -2038,14 +1741,10 @@ export declare class HttpClient {
|
|
|
2038
1741
|
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
2039
1742
|
*/
|
|
2040
1743
|
options(url: string, options?: {
|
|
2041
|
-
headers?: HttpHeaders |
|
|
2042
|
-
[header: string]: string | string[];
|
|
2043
|
-
};
|
|
1744
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2044
1745
|
context?: HttpContext;
|
|
2045
1746
|
observe?: 'body';
|
|
2046
|
-
params?: HttpParams |
|
|
2047
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2048
|
-
};
|
|
1747
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2049
1748
|
reportProgress?: boolean;
|
|
2050
1749
|
responseType?: 'json';
|
|
2051
1750
|
withCredentials?: boolean;
|
|
@@ -2060,14 +1759,10 @@ export declare class HttpClient {
|
|
|
2060
1759
|
* @return An `Observable` of the `HttpResponse`, with a response body of the given type.
|
|
2061
1760
|
*/
|
|
2062
1761
|
options<T>(url: string, options?: {
|
|
2063
|
-
headers?: HttpHeaders |
|
|
2064
|
-
[header: string]: string | string[];
|
|
2065
|
-
};
|
|
1762
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2066
1763
|
context?: HttpContext;
|
|
2067
1764
|
observe?: 'body';
|
|
2068
|
-
params?: HttpParams |
|
|
2069
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2070
|
-
};
|
|
1765
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2071
1766
|
reportProgress?: boolean;
|
|
2072
1767
|
responseType?: 'json';
|
|
2073
1768
|
withCredentials?: boolean;
|
|
@@ -2083,14 +1778,10 @@ export declare class HttpClient {
|
|
|
2083
1778
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2084
1779
|
*/
|
|
2085
1780
|
patch(url: string, body: any | null, options: {
|
|
2086
|
-
headers?: HttpHeaders |
|
|
2087
|
-
[header: string]: string | string[];
|
|
2088
|
-
};
|
|
1781
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2089
1782
|
context?: HttpContext;
|
|
2090
1783
|
observe?: 'body';
|
|
2091
|
-
params?: HttpParams |
|
|
2092
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2093
|
-
};
|
|
1784
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2094
1785
|
reportProgress?: boolean;
|
|
2095
1786
|
responseType: 'arraybuffer';
|
|
2096
1787
|
withCredentials?: boolean;
|
|
@@ -2106,14 +1797,10 @@ export declare class HttpClient {
|
|
|
2106
1797
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
2107
1798
|
*/
|
|
2108
1799
|
patch(url: string, body: any | null, options: {
|
|
2109
|
-
headers?: HttpHeaders |
|
|
2110
|
-
[header: string]: string | string[];
|
|
2111
|
-
};
|
|
1800
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2112
1801
|
context?: HttpContext;
|
|
2113
1802
|
observe?: 'body';
|
|
2114
|
-
params?: HttpParams |
|
|
2115
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2116
|
-
};
|
|
1803
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2117
1804
|
reportProgress?: boolean;
|
|
2118
1805
|
responseType: 'blob';
|
|
2119
1806
|
withCredentials?: boolean;
|
|
@@ -2129,14 +1816,10 @@ export declare class HttpClient {
|
|
|
2129
1816
|
* @return An `Observable` of the response, with a response body of type string.
|
|
2130
1817
|
*/
|
|
2131
1818
|
patch(url: string, body: any | null, options: {
|
|
2132
|
-
headers?: HttpHeaders |
|
|
2133
|
-
[header: string]: string | string[];
|
|
2134
|
-
};
|
|
1819
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2135
1820
|
context?: HttpContext;
|
|
2136
1821
|
observe?: 'body';
|
|
2137
|
-
params?: HttpParams |
|
|
2138
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2139
|
-
};
|
|
1822
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2140
1823
|
reportProgress?: boolean;
|
|
2141
1824
|
responseType: 'text';
|
|
2142
1825
|
withCredentials?: boolean;
|
|
@@ -2153,14 +1836,10 @@ export declare class HttpClient {
|
|
|
2153
1836
|
* with the response body as an `ArrayBuffer`.
|
|
2154
1837
|
*/
|
|
2155
1838
|
patch(url: string, body: any | null, options: {
|
|
2156
|
-
headers?: HttpHeaders |
|
|
2157
|
-
[header: string]: string | string[];
|
|
2158
|
-
};
|
|
1839
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2159
1840
|
observe: 'events';
|
|
2160
1841
|
context?: HttpContext;
|
|
2161
|
-
params?: HttpParams |
|
|
2162
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2163
|
-
};
|
|
1842
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2164
1843
|
reportProgress?: boolean;
|
|
2165
1844
|
responseType: 'arraybuffer';
|
|
2166
1845
|
withCredentials?: boolean;
|
|
@@ -2177,14 +1856,10 @@ export declare class HttpClient {
|
|
|
2177
1856
|
* response body as `Blob`.
|
|
2178
1857
|
*/
|
|
2179
1858
|
patch(url: string, body: any | null, options: {
|
|
2180
|
-
headers?: HttpHeaders |
|
|
2181
|
-
[header: string]: string | string[];
|
|
2182
|
-
};
|
|
1859
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2183
1860
|
observe: 'events';
|
|
2184
1861
|
context?: HttpContext;
|
|
2185
|
-
params?: HttpParams |
|
|
2186
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2187
|
-
};
|
|
1862
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2188
1863
|
reportProgress?: boolean;
|
|
2189
1864
|
responseType: 'blob';
|
|
2190
1865
|
withCredentials?: boolean;
|
|
@@ -2201,14 +1876,10 @@ export declare class HttpClient {
|
|
|
2201
1876
|
* response body of type string.
|
|
2202
1877
|
*/
|
|
2203
1878
|
patch(url: string, body: any | null, options: {
|
|
2204
|
-
headers?: HttpHeaders |
|
|
2205
|
-
[header: string]: string | string[];
|
|
2206
|
-
};
|
|
1879
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2207
1880
|
observe: 'events';
|
|
2208
1881
|
context?: HttpContext;
|
|
2209
|
-
params?: HttpParams |
|
|
2210
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2211
|
-
};
|
|
1882
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2212
1883
|
reportProgress?: boolean;
|
|
2213
1884
|
responseType: 'text';
|
|
2214
1885
|
withCredentials?: boolean;
|
|
@@ -2225,14 +1896,10 @@ export declare class HttpClient {
|
|
|
2225
1896
|
* with a response body of type `Object`.
|
|
2226
1897
|
*/
|
|
2227
1898
|
patch(url: string, body: any | null, options: {
|
|
2228
|
-
headers?: HttpHeaders |
|
|
2229
|
-
[header: string]: string | string[];
|
|
2230
|
-
};
|
|
1899
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2231
1900
|
observe: 'events';
|
|
2232
1901
|
context?: HttpContext;
|
|
2233
|
-
params?: HttpParams |
|
|
2234
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2235
|
-
};
|
|
1902
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2236
1903
|
reportProgress?: boolean;
|
|
2237
1904
|
responseType?: 'json';
|
|
2238
1905
|
withCredentials?: boolean;
|
|
@@ -2249,14 +1916,10 @@ export declare class HttpClient {
|
|
|
2249
1916
|
* with a response body in the requested type.
|
|
2250
1917
|
*/
|
|
2251
1918
|
patch<T>(url: string, body: any | null, options: {
|
|
2252
|
-
headers?: HttpHeaders |
|
|
2253
|
-
[header: string]: string | string[];
|
|
2254
|
-
};
|
|
1919
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2255
1920
|
observe: 'events';
|
|
2256
1921
|
context?: HttpContext;
|
|
2257
|
-
params?: HttpParams |
|
|
2258
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2259
|
-
};
|
|
1922
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2260
1923
|
reportProgress?: boolean;
|
|
2261
1924
|
responseType?: 'json';
|
|
2262
1925
|
withCredentials?: boolean;
|
|
@@ -2273,14 +1936,10 @@ export declare class HttpClient {
|
|
|
2273
1936
|
* with the response body as an `ArrayBuffer`.
|
|
2274
1937
|
*/
|
|
2275
1938
|
patch(url: string, body: any | null, options: {
|
|
2276
|
-
headers?: HttpHeaders |
|
|
2277
|
-
[header: string]: string | string[];
|
|
2278
|
-
};
|
|
1939
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2279
1940
|
observe: 'response';
|
|
2280
1941
|
context?: HttpContext;
|
|
2281
|
-
params?: HttpParams |
|
|
2282
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2283
|
-
};
|
|
1942
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2284
1943
|
reportProgress?: boolean;
|
|
2285
1944
|
responseType: 'arraybuffer';
|
|
2286
1945
|
withCredentials?: boolean;
|
|
@@ -2297,14 +1956,10 @@ export declare class HttpClient {
|
|
|
2297
1956
|
* with the response body as a `Blob`.
|
|
2298
1957
|
*/
|
|
2299
1958
|
patch(url: string, body: any | null, options: {
|
|
2300
|
-
headers?: HttpHeaders |
|
|
2301
|
-
[header: string]: string | string[];
|
|
2302
|
-
};
|
|
1959
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2303
1960
|
observe: 'response';
|
|
2304
1961
|
context?: HttpContext;
|
|
2305
|
-
params?: HttpParams |
|
|
2306
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2307
|
-
};
|
|
1962
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2308
1963
|
reportProgress?: boolean;
|
|
2309
1964
|
responseType: 'blob';
|
|
2310
1965
|
withCredentials?: boolean;
|
|
@@ -2321,14 +1976,10 @@ export declare class HttpClient {
|
|
|
2321
1976
|
* with a response body of type string.
|
|
2322
1977
|
*/
|
|
2323
1978
|
patch(url: string, body: any | null, options: {
|
|
2324
|
-
headers?: HttpHeaders |
|
|
2325
|
-
[header: string]: string | string[];
|
|
2326
|
-
};
|
|
1979
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2327
1980
|
observe: 'response';
|
|
2328
1981
|
context?: HttpContext;
|
|
2329
|
-
params?: HttpParams |
|
|
2330
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2331
|
-
};
|
|
1982
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2332
1983
|
reportProgress?: boolean;
|
|
2333
1984
|
responseType: 'text';
|
|
2334
1985
|
withCredentials?: boolean;
|
|
@@ -2345,14 +1996,10 @@ export declare class HttpClient {
|
|
|
2345
1996
|
* with a response body in the requested type.
|
|
2346
1997
|
*/
|
|
2347
1998
|
patch(url: string, body: any | null, options: {
|
|
2348
|
-
headers?: HttpHeaders |
|
|
2349
|
-
[header: string]: string | string[];
|
|
2350
|
-
};
|
|
1999
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2351
2000
|
observe: 'response';
|
|
2352
2001
|
context?: HttpContext;
|
|
2353
|
-
params?: HttpParams |
|
|
2354
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2355
|
-
};
|
|
2002
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2356
2003
|
reportProgress?: boolean;
|
|
2357
2004
|
responseType?: 'json';
|
|
2358
2005
|
withCredentials?: boolean;
|
|
@@ -2369,14 +2016,10 @@ export declare class HttpClient {
|
|
|
2369
2016
|
* with a response body in the given type.
|
|
2370
2017
|
*/
|
|
2371
2018
|
patch<T>(url: string, body: any | null, options: {
|
|
2372
|
-
headers?: HttpHeaders |
|
|
2373
|
-
[header: string]: string | string[];
|
|
2374
|
-
};
|
|
2019
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2375
2020
|
observe: 'response';
|
|
2376
2021
|
context?: HttpContext;
|
|
2377
|
-
params?: HttpParams |
|
|
2378
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2379
|
-
};
|
|
2022
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2380
2023
|
reportProgress?: boolean;
|
|
2381
2024
|
responseType?: 'json';
|
|
2382
2025
|
withCredentials?: boolean;
|
|
@@ -2393,14 +2036,10 @@ export declare class HttpClient {
|
|
|
2393
2036
|
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
2394
2037
|
*/
|
|
2395
2038
|
patch(url: string, body: any | null, options?: {
|
|
2396
|
-
headers?: HttpHeaders |
|
|
2397
|
-
[header: string]: string | string[];
|
|
2398
|
-
};
|
|
2039
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2399
2040
|
context?: HttpContext;
|
|
2400
2041
|
observe?: 'body';
|
|
2401
|
-
params?: HttpParams |
|
|
2402
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2403
|
-
};
|
|
2042
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2404
2043
|
reportProgress?: boolean;
|
|
2405
2044
|
responseType?: 'json';
|
|
2406
2045
|
withCredentials?: boolean;
|
|
@@ -2417,14 +2056,10 @@ export declare class HttpClient {
|
|
|
2417
2056
|
* with a response body in the given type.
|
|
2418
2057
|
*/
|
|
2419
2058
|
patch<T>(url: string, body: any | null, options?: {
|
|
2420
|
-
headers?: HttpHeaders |
|
|
2421
|
-
[header: string]: string | string[];
|
|
2422
|
-
};
|
|
2059
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2423
2060
|
context?: HttpContext;
|
|
2424
2061
|
observe?: 'body';
|
|
2425
|
-
params?: HttpParams |
|
|
2426
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2427
|
-
};
|
|
2062
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2428
2063
|
reportProgress?: boolean;
|
|
2429
2064
|
responseType?: 'json';
|
|
2430
2065
|
withCredentials?: boolean;
|
|
@@ -2440,14 +2075,10 @@ export declare class HttpClient {
|
|
|
2440
2075
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2441
2076
|
*/
|
|
2442
2077
|
post(url: string, body: any | null, options: {
|
|
2443
|
-
headers?: HttpHeaders |
|
|
2444
|
-
[header: string]: string | string[];
|
|
2445
|
-
};
|
|
2078
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2446
2079
|
context?: HttpContext;
|
|
2447
2080
|
observe?: 'body';
|
|
2448
|
-
params?: HttpParams |
|
|
2449
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2450
|
-
};
|
|
2081
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2451
2082
|
reportProgress?: boolean;
|
|
2452
2083
|
responseType: 'arraybuffer';
|
|
2453
2084
|
withCredentials?: boolean;
|
|
@@ -2466,14 +2097,10 @@ export declare class HttpClient {
|
|
|
2466
2097
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
2467
2098
|
*/
|
|
2468
2099
|
post(url: string, body: any | null, options: {
|
|
2469
|
-
headers?: HttpHeaders |
|
|
2470
|
-
[header: string]: string | string[];
|
|
2471
|
-
};
|
|
2100
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2472
2101
|
context?: HttpContext;
|
|
2473
2102
|
observe?: 'body';
|
|
2474
|
-
params?: HttpParams |
|
|
2475
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2476
|
-
};
|
|
2103
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2477
2104
|
reportProgress?: boolean;
|
|
2478
2105
|
responseType: 'blob';
|
|
2479
2106
|
withCredentials?: boolean;
|
|
@@ -2492,14 +2119,10 @@ export declare class HttpClient {
|
|
|
2492
2119
|
* @return An `Observable` of the response, with a response body of type string.
|
|
2493
2120
|
*/
|
|
2494
2121
|
post(url: string, body: any | null, options: {
|
|
2495
|
-
headers?: HttpHeaders |
|
|
2496
|
-
[header: string]: string | string[];
|
|
2497
|
-
};
|
|
2122
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2498
2123
|
context?: HttpContext;
|
|
2499
2124
|
observe?: 'body';
|
|
2500
|
-
params?: HttpParams |
|
|
2501
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2502
|
-
};
|
|
2125
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2503
2126
|
reportProgress?: boolean;
|
|
2504
2127
|
responseType: 'text';
|
|
2505
2128
|
withCredentials?: boolean;
|
|
@@ -2519,14 +2142,10 @@ export declare class HttpClient {
|
|
|
2519
2142
|
* with the response body as an `ArrayBuffer`.
|
|
2520
2143
|
*/
|
|
2521
2144
|
post(url: string, body: any | null, options: {
|
|
2522
|
-
headers?: HttpHeaders |
|
|
2523
|
-
[header: string]: string | string[];
|
|
2524
|
-
};
|
|
2145
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2525
2146
|
observe: 'events';
|
|
2526
2147
|
context?: HttpContext;
|
|
2527
|
-
params?: HttpParams |
|
|
2528
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2529
|
-
};
|
|
2148
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2530
2149
|
reportProgress?: boolean;
|
|
2531
2150
|
responseType: 'arraybuffer';
|
|
2532
2151
|
withCredentials?: boolean;
|
|
@@ -2545,14 +2164,10 @@ export declare class HttpClient {
|
|
|
2545
2164
|
* @return An `Observable` of all `HttpEvent`s for the request, with the response body as `Blob`.
|
|
2546
2165
|
*/
|
|
2547
2166
|
post(url: string, body: any | null, options: {
|
|
2548
|
-
headers?: HttpHeaders |
|
|
2549
|
-
[header: string]: string | string[];
|
|
2550
|
-
};
|
|
2167
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2551
2168
|
observe: 'events';
|
|
2552
2169
|
context?: HttpContext;
|
|
2553
|
-
params?: HttpParams |
|
|
2554
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2555
|
-
};
|
|
2170
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2556
2171
|
reportProgress?: boolean;
|
|
2557
2172
|
responseType: 'blob';
|
|
2558
2173
|
withCredentials?: boolean;
|
|
@@ -2572,14 +2187,10 @@ export declare class HttpClient {
|
|
|
2572
2187
|
* with a response body of type string.
|
|
2573
2188
|
*/
|
|
2574
2189
|
post(url: string, body: any | null, options: {
|
|
2575
|
-
headers?: HttpHeaders |
|
|
2576
|
-
[header: string]: string | string[];
|
|
2577
|
-
};
|
|
2190
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2578
2191
|
observe: 'events';
|
|
2579
2192
|
context?: HttpContext;
|
|
2580
|
-
params?: HttpParams |
|
|
2581
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2582
|
-
};
|
|
2193
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2583
2194
|
reportProgress?: boolean;
|
|
2584
2195
|
responseType: 'text';
|
|
2585
2196
|
withCredentials?: boolean;
|
|
@@ -2599,14 +2210,10 @@ export declare class HttpClient {
|
|
|
2599
2210
|
* with a response body of type `Object`.
|
|
2600
2211
|
*/
|
|
2601
2212
|
post(url: string, body: any | null, options: {
|
|
2602
|
-
headers?: HttpHeaders |
|
|
2603
|
-
[header: string]: string | string[];
|
|
2604
|
-
};
|
|
2213
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2605
2214
|
observe: 'events';
|
|
2606
2215
|
context?: HttpContext;
|
|
2607
|
-
params?: HttpParams |
|
|
2608
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2609
|
-
};
|
|
2216
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2610
2217
|
reportProgress?: boolean;
|
|
2611
2218
|
responseType?: 'json';
|
|
2612
2219
|
withCredentials?: boolean;
|
|
@@ -2626,14 +2233,10 @@ export declare class HttpClient {
|
|
|
2626
2233
|
* with a response body in the requested type.
|
|
2627
2234
|
*/
|
|
2628
2235
|
post<T>(url: string, body: any | null, options: {
|
|
2629
|
-
headers?: HttpHeaders |
|
|
2630
|
-
[header: string]: string | string[];
|
|
2631
|
-
};
|
|
2236
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2632
2237
|
observe: 'events';
|
|
2633
2238
|
context?: HttpContext;
|
|
2634
|
-
params?: HttpParams |
|
|
2635
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2636
|
-
};
|
|
2239
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2637
2240
|
reportProgress?: boolean;
|
|
2638
2241
|
responseType?: 'json';
|
|
2639
2242
|
withCredentials?: boolean;
|
|
@@ -2653,14 +2256,10 @@ export declare class HttpClient {
|
|
|
2653
2256
|
* `ArrayBuffer`.
|
|
2654
2257
|
*/
|
|
2655
2258
|
post(url: string, body: any | null, options: {
|
|
2656
|
-
headers?: HttpHeaders |
|
|
2657
|
-
[header: string]: string | string[];
|
|
2658
|
-
};
|
|
2259
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2659
2260
|
observe: 'response';
|
|
2660
2261
|
context?: HttpContext;
|
|
2661
|
-
params?: HttpParams |
|
|
2662
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2663
|
-
};
|
|
2262
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2664
2263
|
reportProgress?: boolean;
|
|
2665
2264
|
responseType: 'arraybuffer';
|
|
2666
2265
|
withCredentials?: boolean;
|
|
@@ -2680,14 +2279,10 @@ export declare class HttpClient {
|
|
|
2680
2279
|
* with the response body as a `Blob`.
|
|
2681
2280
|
*/
|
|
2682
2281
|
post(url: string, body: any | null, options: {
|
|
2683
|
-
headers?: HttpHeaders |
|
|
2684
|
-
[header: string]: string | string[];
|
|
2685
|
-
};
|
|
2282
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2686
2283
|
observe: 'response';
|
|
2687
2284
|
context?: HttpContext;
|
|
2688
|
-
params?: HttpParams |
|
|
2689
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2690
|
-
};
|
|
2285
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2691
2286
|
reportProgress?: boolean;
|
|
2692
2287
|
responseType: 'blob';
|
|
2693
2288
|
withCredentials?: boolean;
|
|
@@ -2707,14 +2302,10 @@ export declare class HttpClient {
|
|
|
2707
2302
|
* with a response body of type string.
|
|
2708
2303
|
*/
|
|
2709
2304
|
post(url: string, body: any | null, options: {
|
|
2710
|
-
headers?: HttpHeaders |
|
|
2711
|
-
[header: string]: string | string[];
|
|
2712
|
-
};
|
|
2305
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2713
2306
|
observe: 'response';
|
|
2714
2307
|
context?: HttpContext;
|
|
2715
|
-
params?: HttpParams |
|
|
2716
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2717
|
-
};
|
|
2308
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2718
2309
|
reportProgress?: boolean;
|
|
2719
2310
|
responseType: 'text';
|
|
2720
2311
|
withCredentials?: boolean;
|
|
@@ -2734,14 +2325,10 @@ export declare class HttpClient {
|
|
|
2734
2325
|
* `Object`.
|
|
2735
2326
|
*/
|
|
2736
2327
|
post(url: string, body: any | null, options: {
|
|
2737
|
-
headers?: HttpHeaders |
|
|
2738
|
-
[header: string]: string | string[];
|
|
2739
|
-
};
|
|
2328
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2740
2329
|
observe: 'response';
|
|
2741
2330
|
context?: HttpContext;
|
|
2742
|
-
params?: HttpParams |
|
|
2743
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2744
|
-
};
|
|
2331
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2745
2332
|
reportProgress?: boolean;
|
|
2746
2333
|
responseType?: 'json';
|
|
2747
2334
|
withCredentials?: boolean;
|
|
@@ -2762,14 +2349,10 @@ export declare class HttpClient {
|
|
|
2762
2349
|
* requested type.
|
|
2763
2350
|
*/
|
|
2764
2351
|
post<T>(url: string, body: any | null, options: {
|
|
2765
|
-
headers?: HttpHeaders |
|
|
2766
|
-
[header: string]: string | string[];
|
|
2767
|
-
};
|
|
2352
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2768
2353
|
observe: 'response';
|
|
2769
2354
|
context?: HttpContext;
|
|
2770
|
-
params?: HttpParams |
|
|
2771
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2772
|
-
};
|
|
2355
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2773
2356
|
reportProgress?: boolean;
|
|
2774
2357
|
responseType?: 'json';
|
|
2775
2358
|
withCredentials?: boolean;
|
|
@@ -2788,14 +2371,10 @@ export declare class HttpClient {
|
|
|
2788
2371
|
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
2789
2372
|
*/
|
|
2790
2373
|
post(url: string, body: any | null, options?: {
|
|
2791
|
-
headers?: HttpHeaders |
|
|
2792
|
-
[header: string]: string | string[];
|
|
2793
|
-
};
|
|
2374
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2794
2375
|
context?: HttpContext;
|
|
2795
2376
|
observe?: 'body';
|
|
2796
|
-
params?: HttpParams |
|
|
2797
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2798
|
-
};
|
|
2377
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2799
2378
|
reportProgress?: boolean;
|
|
2800
2379
|
responseType?: 'json';
|
|
2801
2380
|
withCredentials?: boolean;
|
|
@@ -2815,14 +2394,10 @@ export declare class HttpClient {
|
|
|
2815
2394
|
* requested type.
|
|
2816
2395
|
*/
|
|
2817
2396
|
post<T>(url: string, body: any | null, options?: {
|
|
2818
|
-
headers?: HttpHeaders |
|
|
2819
|
-
[header: string]: string | string[];
|
|
2820
|
-
};
|
|
2397
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2821
2398
|
context?: HttpContext;
|
|
2822
2399
|
observe?: 'body';
|
|
2823
|
-
params?: HttpParams |
|
|
2824
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2825
|
-
};
|
|
2400
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2826
2401
|
reportProgress?: boolean;
|
|
2827
2402
|
responseType?: 'json';
|
|
2828
2403
|
withCredentials?: boolean;
|
|
@@ -2841,14 +2416,10 @@ export declare class HttpClient {
|
|
|
2841
2416
|
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2842
2417
|
*/
|
|
2843
2418
|
put(url: string, body: any | null, options: {
|
|
2844
|
-
headers?: HttpHeaders |
|
|
2845
|
-
[header: string]: string | string[];
|
|
2846
|
-
};
|
|
2419
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2847
2420
|
context?: HttpContext;
|
|
2848
2421
|
observe?: 'body';
|
|
2849
|
-
params?: HttpParams |
|
|
2850
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2851
|
-
};
|
|
2422
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2852
2423
|
reportProgress?: boolean;
|
|
2853
2424
|
responseType: 'arraybuffer';
|
|
2854
2425
|
withCredentials?: boolean;
|
|
@@ -2864,14 +2435,10 @@ export declare class HttpClient {
|
|
|
2864
2435
|
* @return An `Observable` of the response, with the response body as a `Blob`.
|
|
2865
2436
|
*/
|
|
2866
2437
|
put(url: string, body: any | null, options: {
|
|
2867
|
-
headers?: HttpHeaders |
|
|
2868
|
-
[header: string]: string | string[];
|
|
2869
|
-
};
|
|
2438
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2870
2439
|
context?: HttpContext;
|
|
2871
2440
|
observe?: 'body';
|
|
2872
|
-
params?: HttpParams |
|
|
2873
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2874
|
-
};
|
|
2441
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2875
2442
|
reportProgress?: boolean;
|
|
2876
2443
|
responseType: 'blob';
|
|
2877
2444
|
withCredentials?: boolean;
|
|
@@ -2887,14 +2454,10 @@ export declare class HttpClient {
|
|
|
2887
2454
|
* @return An `Observable` of the response, with a response body of type string.
|
|
2888
2455
|
*/
|
|
2889
2456
|
put(url: string, body: any | null, options: {
|
|
2890
|
-
headers?: HttpHeaders |
|
|
2891
|
-
[header: string]: string | string[];
|
|
2892
|
-
};
|
|
2457
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2893
2458
|
context?: HttpContext;
|
|
2894
2459
|
observe?: 'body';
|
|
2895
|
-
params?: HttpParams |
|
|
2896
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2897
|
-
};
|
|
2460
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2898
2461
|
reportProgress?: boolean;
|
|
2899
2462
|
responseType: 'text';
|
|
2900
2463
|
withCredentials?: boolean;
|
|
@@ -2911,14 +2474,10 @@ export declare class HttpClient {
|
|
|
2911
2474
|
* with the response body as an `ArrayBuffer`.
|
|
2912
2475
|
*/
|
|
2913
2476
|
put(url: string, body: any | null, options: {
|
|
2914
|
-
headers?: HttpHeaders |
|
|
2915
|
-
[header: string]: string | string[];
|
|
2916
|
-
};
|
|
2477
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2917
2478
|
observe: 'events';
|
|
2918
2479
|
context?: HttpContext;
|
|
2919
|
-
params?: HttpParams |
|
|
2920
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2921
|
-
};
|
|
2480
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2922
2481
|
reportProgress?: boolean;
|
|
2923
2482
|
responseType: 'arraybuffer';
|
|
2924
2483
|
withCredentials?: boolean;
|
|
@@ -2935,14 +2494,10 @@ export declare class HttpClient {
|
|
|
2935
2494
|
* with the response body as a `Blob`.
|
|
2936
2495
|
*/
|
|
2937
2496
|
put(url: string, body: any | null, options: {
|
|
2938
|
-
headers?: HttpHeaders |
|
|
2939
|
-
[header: string]: string | string[];
|
|
2940
|
-
};
|
|
2497
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2941
2498
|
observe: 'events';
|
|
2942
2499
|
context?: HttpContext;
|
|
2943
|
-
params?: HttpParams |
|
|
2944
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2945
|
-
};
|
|
2500
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2946
2501
|
reportProgress?: boolean;
|
|
2947
2502
|
responseType: 'blob';
|
|
2948
2503
|
withCredentials?: boolean;
|
|
@@ -2959,14 +2514,10 @@ export declare class HttpClient {
|
|
|
2959
2514
|
* of type string.
|
|
2960
2515
|
*/
|
|
2961
2516
|
put(url: string, body: any | null, options: {
|
|
2962
|
-
headers?: HttpHeaders |
|
|
2963
|
-
[header: string]: string | string[];
|
|
2964
|
-
};
|
|
2517
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2965
2518
|
observe: 'events';
|
|
2966
2519
|
context?: HttpContext;
|
|
2967
|
-
params?: HttpParams |
|
|
2968
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2969
|
-
};
|
|
2520
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2970
2521
|
reportProgress?: boolean;
|
|
2971
2522
|
responseType: 'text';
|
|
2972
2523
|
withCredentials?: boolean;
|
|
@@ -2983,14 +2534,10 @@ export declare class HttpClient {
|
|
|
2983
2534
|
* type `Object`.
|
|
2984
2535
|
*/
|
|
2985
2536
|
put(url: string, body: any | null, options: {
|
|
2986
|
-
headers?: HttpHeaders |
|
|
2987
|
-
[header: string]: string | string[];
|
|
2988
|
-
};
|
|
2537
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
2989
2538
|
observe: 'events';
|
|
2990
2539
|
context?: HttpContext;
|
|
2991
|
-
params?: HttpParams |
|
|
2992
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
2993
|
-
};
|
|
2540
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
2994
2541
|
reportProgress?: boolean;
|
|
2995
2542
|
responseType?: 'json';
|
|
2996
2543
|
withCredentials?: boolean;
|
|
@@ -3007,14 +2554,10 @@ export declare class HttpClient {
|
|
|
3007
2554
|
* with a response body in the requested type.
|
|
3008
2555
|
*/
|
|
3009
2556
|
put<T>(url: string, body: any | null, options: {
|
|
3010
|
-
headers?: HttpHeaders |
|
|
3011
|
-
[header: string]: string | string[];
|
|
3012
|
-
};
|
|
2557
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3013
2558
|
observe: 'events';
|
|
3014
2559
|
context?: HttpContext;
|
|
3015
|
-
params?: HttpParams |
|
|
3016
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3017
|
-
};
|
|
2560
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3018
2561
|
reportProgress?: boolean;
|
|
3019
2562
|
responseType?: 'json';
|
|
3020
2563
|
withCredentials?: boolean;
|
|
@@ -3031,14 +2574,10 @@ export declare class HttpClient {
|
|
|
3031
2574
|
* `ArrayBuffer`.
|
|
3032
2575
|
*/
|
|
3033
2576
|
put(url: string, body: any | null, options: {
|
|
3034
|
-
headers?: HttpHeaders |
|
|
3035
|
-
[header: string]: string | string[];
|
|
3036
|
-
};
|
|
2577
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3037
2578
|
observe: 'response';
|
|
3038
2579
|
context?: HttpContext;
|
|
3039
|
-
params?: HttpParams |
|
|
3040
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3041
|
-
};
|
|
2580
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3042
2581
|
reportProgress?: boolean;
|
|
3043
2582
|
responseType: 'arraybuffer';
|
|
3044
2583
|
withCredentials?: boolean;
|
|
@@ -3055,14 +2594,10 @@ export declare class HttpClient {
|
|
|
3055
2594
|
* with the response body as a `Blob`.
|
|
3056
2595
|
*/
|
|
3057
2596
|
put(url: string, body: any | null, options: {
|
|
3058
|
-
headers?: HttpHeaders |
|
|
3059
|
-
[header: string]: string | string[];
|
|
3060
|
-
};
|
|
2597
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3061
2598
|
observe: 'response';
|
|
3062
2599
|
context?: HttpContext;
|
|
3063
|
-
params?: HttpParams |
|
|
3064
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3065
|
-
};
|
|
2600
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3066
2601
|
reportProgress?: boolean;
|
|
3067
2602
|
responseType: 'blob';
|
|
3068
2603
|
withCredentials?: boolean;
|
|
@@ -3079,14 +2614,10 @@ export declare class HttpClient {
|
|
|
3079
2614
|
* string.
|
|
3080
2615
|
*/
|
|
3081
2616
|
put(url: string, body: any | null, options: {
|
|
3082
|
-
headers?: HttpHeaders |
|
|
3083
|
-
[header: string]: string | string[];
|
|
3084
|
-
};
|
|
2617
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3085
2618
|
observe: 'response';
|
|
3086
2619
|
context?: HttpContext;
|
|
3087
|
-
params?: HttpParams |
|
|
3088
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3089
|
-
};
|
|
2620
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3090
2621
|
reportProgress?: boolean;
|
|
3091
2622
|
responseType: 'text';
|
|
3092
2623
|
withCredentials?: boolean;
|
|
@@ -3103,14 +2634,10 @@ export declare class HttpClient {
|
|
|
3103
2634
|
* of type 'Object`.
|
|
3104
2635
|
*/
|
|
3105
2636
|
put(url: string, body: any | null, options: {
|
|
3106
|
-
headers?: HttpHeaders |
|
|
3107
|
-
[header: string]: string | string[];
|
|
3108
|
-
};
|
|
2637
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3109
2638
|
observe: 'response';
|
|
3110
2639
|
context?: HttpContext;
|
|
3111
|
-
params?: HttpParams |
|
|
3112
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3113
|
-
};
|
|
2640
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3114
2641
|
reportProgress?: boolean;
|
|
3115
2642
|
responseType?: 'json';
|
|
3116
2643
|
withCredentials?: boolean;
|
|
@@ -3127,14 +2654,10 @@ export declare class HttpClient {
|
|
|
3127
2654
|
* with a response body in the requested type.
|
|
3128
2655
|
*/
|
|
3129
2656
|
put<T>(url: string, body: any | null, options: {
|
|
3130
|
-
headers?: HttpHeaders |
|
|
3131
|
-
[header: string]: string | string[];
|
|
3132
|
-
};
|
|
2657
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3133
2658
|
observe: 'response';
|
|
3134
2659
|
context?: HttpContext;
|
|
3135
|
-
params?: HttpParams |
|
|
3136
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3137
|
-
};
|
|
2660
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3138
2661
|
reportProgress?: boolean;
|
|
3139
2662
|
responseType?: 'json';
|
|
3140
2663
|
withCredentials?: boolean;
|
|
@@ -3150,14 +2673,10 @@ export declare class HttpClient {
|
|
|
3150
2673
|
* @return An `Observable` of the response as a JavaScript object.
|
|
3151
2674
|
*/
|
|
3152
2675
|
put(url: string, body: any | null, options?: {
|
|
3153
|
-
headers?: HttpHeaders |
|
|
3154
|
-
[header: string]: string | string[];
|
|
3155
|
-
};
|
|
2676
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3156
2677
|
context?: HttpContext;
|
|
3157
2678
|
observe?: 'body';
|
|
3158
|
-
params?: HttpParams |
|
|
3159
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3160
|
-
};
|
|
2679
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3161
2680
|
reportProgress?: boolean;
|
|
3162
2681
|
responseType?: 'json';
|
|
3163
2682
|
withCredentials?: boolean;
|
|
@@ -3173,14 +2692,10 @@ export declare class HttpClient {
|
|
|
3173
2692
|
* @return An `Observable` of the requested type.
|
|
3174
2693
|
*/
|
|
3175
2694
|
put<T>(url: string, body: any | null, options?: {
|
|
3176
|
-
headers?: HttpHeaders |
|
|
3177
|
-
[header: string]: string | string[];
|
|
3178
|
-
};
|
|
2695
|
+
headers?: HttpHeaders | Record<string, string | string[]>;
|
|
3179
2696
|
context?: HttpContext;
|
|
3180
2697
|
observe?: 'body';
|
|
3181
|
-
params?: HttpParams |
|
|
3182
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
3183
|
-
};
|
|
2698
|
+
params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
3184
2699
|
reportProgress?: boolean;
|
|
3185
2700
|
responseType?: 'json';
|
|
3186
2701
|
withCredentials?: boolean;
|
|
@@ -4203,12 +3718,12 @@ export declare interface HttpResourceOptions<TResult, TRaw> {
|
|
|
4203
3718
|
/**
|
|
4204
3719
|
* Transform the result of the HTTP request before it's delivered to the resource.
|
|
4205
3720
|
*
|
|
4206
|
-
* `
|
|
3721
|
+
* `parse` receives the value from the HTTP layer as its raw type (e.g. as `unknown` for JSON data).
|
|
4207
3722
|
* It can be used to validate or transform the type of the resource, and return a more specific
|
|
4208
3723
|
* type. This is also useful for validating backend responses using a runtime schema validation
|
|
4209
3724
|
* library such as Zod.
|
|
4210
3725
|
*/
|
|
4211
|
-
|
|
3726
|
+
parse?: (value: TRaw) => TResult;
|
|
4212
3727
|
/**
|
|
4213
3728
|
* Value that the resource will take when in Idle, Loading, or Error states.
|
|
4214
3729
|
*
|