1
|
import { Observable } from 'rxjs/Observable';
|
2
|
import { HttpHandler } from './backend';
|
3
|
import { HttpHeaders } from './headers';
|
4
|
import { HttpParams } from './params';
|
5
|
import { HttpRequest } from './request';
|
6
|
import { HttpEvent, HttpResponse } from './response';
|
7
|
/**
|
8
|
* @experimental
|
9
|
*/
|
10
|
export declare type HttpObserve = 'body' | 'events' | 'response';
|
11
|
/**
|
12
|
* Perform HTTP requests.
|
13
|
*
|
14
|
* `HttpClient` is available as an injectable class, with methods to perform HTTP requests.
|
15
|
* Each request method has multiple signatures, and the return type varies according to which
|
16
|
* signature is called (mainly the values of `observe` and `responseType`).
|
17
|
*
|
18
|
* @experimental
|
19
|
*/
|
20
|
export declare class HttpClient {
|
21
|
private handler;
|
22
|
constructor(handler: HttpHandler);
|
23
|
/**
|
24
|
* Send the given `HttpRequest` and return a stream of `HttpEvents`.
|
25
|
*/
|
26
|
request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
|
27
|
/**
|
28
|
* Construct a request which interprets the body as an `ArrayBuffer` and returns it.
|
29
|
*
|
30
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
31
|
*/
|
32
|
request(method: string, url: string, options: {
|
33
|
body?: any;
|
34
|
headers?: HttpHeaders;
|
35
|
observe?: 'body';
|
36
|
params?: HttpParams;
|
37
|
reportProgress?: boolean;
|
38
|
responseType: 'arraybuffer';
|
39
|
withCredentials?: boolean;
|
40
|
}): Observable<ArrayBuffer>;
|
41
|
/**
|
42
|
* Construct a request which interprets the body as a `Blob` and returns it.
|
43
|
*
|
44
|
* @return an `Observable` of the body as a `Blob`.
|
45
|
*/
|
46
|
request(method: string, url: string, options: {
|
47
|
body?: any;
|
48
|
headers?: HttpHeaders;
|
49
|
observe?: 'body';
|
50
|
params?: HttpParams;
|
51
|
reportProgress?: boolean;
|
52
|
responseType: 'blob';
|
53
|
withCredentials?: boolean;
|
54
|
}): Observable<Blob>;
|
55
|
/**
|
56
|
* Construct a request which interprets the body as text and returns it.
|
57
|
*
|
58
|
* @return an `Observable` of the body as a `string`.
|
59
|
*/
|
60
|
request(method: string, url: string, options: {
|
61
|
body?: any;
|
62
|
headers?: HttpHeaders;
|
63
|
observe?: 'body';
|
64
|
params?: HttpParams;
|
65
|
reportProgress?: boolean;
|
66
|
responseType: 'text';
|
67
|
withCredentials?: boolean;
|
68
|
}): Observable<string>;
|
69
|
/**
|
70
|
* Construct a request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
71
|
*
|
72
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
73
|
*/
|
74
|
request(method: string, url: string, options: {
|
75
|
body?: any;
|
76
|
headers?: HttpHeaders;
|
77
|
params?: HttpParams;
|
78
|
observe: 'events';
|
79
|
reportProgress?: boolean;
|
80
|
responseType: 'arraybuffer';
|
81
|
withCredentials?: boolean;
|
82
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
83
|
/**
|
84
|
* Construct a request which interprets the body as an `Blob` and returns the full event stream.
|
85
|
*
|
86
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
87
|
*/
|
88
|
request(method: string, url: string, options: {
|
89
|
body?: any;
|
90
|
headers?: HttpHeaders;
|
91
|
observe: 'events';
|
92
|
params?: HttpParams;
|
93
|
reportProgress?: boolean;
|
94
|
responseType: 'blob';
|
95
|
withCredentials?: boolean;
|
96
|
}): Observable<HttpEvent<Blob>>;
|
97
|
/**
|
98
|
* Construct a request which interprets the body as text and returns the full event stream.
|
99
|
*
|
100
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
101
|
*/
|
102
|
request(method: string, url: string, options: {
|
103
|
body?: any;
|
104
|
headers?: HttpHeaders;
|
105
|
observe: 'events';
|
106
|
params?: HttpParams;
|
107
|
reportProgress?: boolean;
|
108
|
responseType: 'text';
|
109
|
withCredentials?: boolean;
|
110
|
}): Observable<HttpEvent<string>>;
|
111
|
/**
|
112
|
* Construct a request which interprets the body as JSON and returns the full event stream.
|
113
|
*
|
114
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
115
|
*/
|
116
|
request(method: string, url: string, options: {
|
117
|
body?: any;
|
118
|
headers?: HttpHeaders;
|
119
|
reportProgress?: boolean;
|
120
|
observe: 'events';
|
121
|
params?: HttpParams;
|
122
|
responseType?: 'json';
|
123
|
withCredentials?: boolean;
|
124
|
}): Observable<HttpEvent<any>>;
|
125
|
/**
|
126
|
* Construct a request which interprets the body as JSON and returns the full event stream.
|
127
|
*
|
128
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `R`.
|
129
|
*/
|
130
|
request<R>(method: string, url: string, options: {
|
131
|
body?: any;
|
132
|
headers?: HttpHeaders;
|
133
|
reportProgress?: boolean;
|
134
|
observe: 'events';
|
135
|
params?: HttpParams;
|
136
|
responseType?: 'json';
|
137
|
withCredentials?: boolean;
|
138
|
}): Observable<HttpEvent<R>>;
|
139
|
/**
|
140
|
* Construct a request which interprets the body as an `ArrayBuffer` and returns the full response.
|
141
|
*
|
142
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
143
|
*/
|
144
|
request(method: string, url: string, options: {
|
145
|
body?: any;
|
146
|
headers?: HttpHeaders;
|
147
|
observe: 'response';
|
148
|
params?: HttpParams;
|
149
|
reportProgress?: boolean;
|
150
|
responseType: 'arraybuffer';
|
151
|
withCredentials?: boolean;
|
152
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
153
|
/**
|
154
|
* Construct a request which interprets the body as a `Blob` and returns the full response.
|
155
|
*
|
156
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
157
|
*/
|
158
|
request(method: string, url: string, options: {
|
159
|
body?: any;
|
160
|
headers?: HttpHeaders;
|
161
|
observe: 'response';
|
162
|
params?: HttpParams;
|
163
|
reportProgress?: boolean;
|
164
|
responseType: 'blob';
|
165
|
withCredentials?: boolean;
|
166
|
}): Observable<HttpResponse<Blob>>;
|
167
|
/**
|
168
|
* Construct a request which interprets the body as text and returns the full response.
|
169
|
*
|
170
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
171
|
*/
|
172
|
request(method: string, url: string, options: {
|
173
|
body?: any;
|
174
|
headers?: HttpHeaders;
|
175
|
observe: 'response';
|
176
|
params?: HttpParams;
|
177
|
reportProgress?: boolean;
|
178
|
responseType: 'text';
|
179
|
withCredentials?: boolean;
|
180
|
}): Observable<HttpResponse<string>>;
|
181
|
/**
|
182
|
* Construct a request which interprets the body as JSON and returns the full response.
|
183
|
*
|
184
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
185
|
*/
|
186
|
request(method: string, url: string, options: {
|
187
|
body?: any;
|
188
|
headers?: HttpHeaders;
|
189
|
reportProgress?: boolean;
|
190
|
observe: 'response';
|
191
|
params?: HttpParams;
|
192
|
responseType?: 'json';
|
193
|
withCredentials?: boolean;
|
194
|
}): Observable<HttpResponse<Object>>;
|
195
|
/**
|
196
|
* Construct a request which interprets the body as JSON and returns the full response.
|
197
|
*
|
198
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
|
199
|
*/
|
200
|
request<R>(method: string, url: string, options: {
|
201
|
body?: any;
|
202
|
headers?: HttpHeaders;
|
203
|
reportProgress?: boolean;
|
204
|
observe: 'response';
|
205
|
params?: HttpParams;
|
206
|
responseType?: 'json';
|
207
|
withCredentials?: boolean;
|
208
|
}): Observable<HttpResponse<R>>;
|
209
|
/**
|
210
|
* Construct a request which interprets the body as JSON and returns it.
|
211
|
*
|
212
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
213
|
*/
|
214
|
request(method: string, url: string, options?: {
|
215
|
body?: any;
|
216
|
headers?: HttpHeaders;
|
217
|
observe?: 'body';
|
218
|
params?: HttpParams;
|
219
|
responseType?: 'json';
|
220
|
reportProgress?: boolean;
|
221
|
withCredentials?: boolean;
|
222
|
}): Observable<Object>;
|
223
|
/**
|
224
|
* Construct a request which interprets the body as JSON and returns it.
|
225
|
*
|
226
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
|
227
|
*/
|
228
|
request<R>(method: string, url: string, options?: {
|
229
|
body?: any;
|
230
|
headers?: HttpHeaders;
|
231
|
observe?: 'body';
|
232
|
params?: HttpParams;
|
233
|
responseType?: 'json';
|
234
|
reportProgress?: boolean;
|
235
|
withCredentials?: boolean;
|
236
|
}): Observable<R>;
|
237
|
/**
|
238
|
* Construct a request in a manner where response type and requested `Observable` are not known
|
239
|
* statically.
|
240
|
*
|
241
|
* @return an `Observable` of whatever was requested, typed to `any`.
|
242
|
*/
|
243
|
request(method: string, url: string, options?: {
|
244
|
body?: any;
|
245
|
headers?: HttpHeaders;
|
246
|
params?: HttpParams;
|
247
|
observe?: HttpObserve;
|
248
|
reportProgress?: boolean;
|
249
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
250
|
withCredentials?: boolean;
|
251
|
}): Observable<any>;
|
252
|
/**
|
253
|
* Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns it.
|
254
|
*
|
255
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
256
|
*/
|
257
|
delete(url: string, options: {
|
258
|
headers?: HttpHeaders;
|
259
|
observe?: 'body';
|
260
|
params?: HttpParams;
|
261
|
reportProgress?: boolean;
|
262
|
responseType: 'arraybuffer';
|
263
|
withCredentials?: boolean;
|
264
|
}): Observable<ArrayBuffer>;
|
265
|
/**
|
266
|
* Construct a DELETE request which interprets the body as a `Blob` and returns it.
|
267
|
*
|
268
|
* @return an `Observable` of the body as a `Blob`.
|
269
|
*/
|
270
|
delete(url: string, options: {
|
271
|
headers?: HttpHeaders;
|
272
|
observe?: 'body';
|
273
|
params?: HttpParams;
|
274
|
reportProgress?: boolean;
|
275
|
responseType: 'blob';
|
276
|
withCredentials?: boolean;
|
277
|
}): Observable<Blob>;
|
278
|
/**
|
279
|
* Construct a DELETE request which interprets the body as text and returns it.
|
280
|
*
|
281
|
* @return an `Observable` of the body as a `string`.
|
282
|
*/
|
283
|
delete(url: string, options: {
|
284
|
headers?: HttpHeaders;
|
285
|
observe?: 'body';
|
286
|
params?: HttpParams;
|
287
|
reportProgress?: boolean;
|
288
|
responseType: 'text';
|
289
|
withCredentials?: boolean;
|
290
|
}): Observable<string>;
|
291
|
/**
|
292
|
* Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
293
|
*
|
294
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
295
|
*/
|
296
|
delete(url: string, options: {
|
297
|
headers?: HttpHeaders;
|
298
|
observe: 'events';
|
299
|
params?: HttpParams;
|
300
|
reportProgress?: boolean;
|
301
|
responseType: 'arraybuffer';
|
302
|
withCredentials?: boolean;
|
303
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
304
|
/**
|
305
|
* Construct a DELETE request which interprets the body as a `Blob` and returns the full event stream.
|
306
|
*
|
307
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
308
|
*/
|
309
|
delete(url: string, options: {
|
310
|
headers?: HttpHeaders;
|
311
|
observe: 'events';
|
312
|
params?: HttpParams;
|
313
|
reportProgress?: boolean;
|
314
|
responseType: 'blob';
|
315
|
withCredentials?: boolean;
|
316
|
}): Observable<HttpEvent<Blob>>;
|
317
|
/**
|
318
|
* Construct a DELETE request which interprets the body as text and returns the full event stream.
|
319
|
*
|
320
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
321
|
*/
|
322
|
delete(url: string, options: {
|
323
|
headers?: HttpHeaders;
|
324
|
observe: 'events';
|
325
|
params?: HttpParams;
|
326
|
reportProgress?: boolean;
|
327
|
responseType: 'text';
|
328
|
withCredentials?: boolean;
|
329
|
}): Observable<HttpEvent<string>>;
|
330
|
/**
|
331
|
* Construct a DELETE request which interprets the body as JSON and returns the full event stream.
|
332
|
*
|
333
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
334
|
*/
|
335
|
delete(url: string, options: {
|
336
|
headers?: HttpHeaders;
|
337
|
observe: 'events';
|
338
|
params?: HttpParams;
|
339
|
reportProgress?: boolean;
|
340
|
responseType?: 'json';
|
341
|
withCredentials?: boolean;
|
342
|
}): Observable<HttpEvent<Object>>;
|
343
|
/**
|
344
|
* Construct a DELETE request which interprets the body as JSON and returns the full event stream.
|
345
|
*
|
346
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
347
|
*/
|
348
|
delete<T>(url: string, options: {
|
349
|
headers?: HttpHeaders;
|
350
|
observe: 'events';
|
351
|
params?: HttpParams;
|
352
|
reportProgress?: boolean;
|
353
|
responseType?: 'json';
|
354
|
withCredentials?: boolean;
|
355
|
}): Observable<HttpEvent<T>>;
|
356
|
/**
|
357
|
* Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full response.
|
358
|
*
|
359
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
360
|
*/
|
361
|
delete(url: string, options: {
|
362
|
headers?: HttpHeaders;
|
363
|
observe: 'response';
|
364
|
params?: HttpParams;
|
365
|
reportProgress?: boolean;
|
366
|
responseType: 'arraybuffer';
|
367
|
withCredentials?: boolean;
|
368
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
369
|
/**
|
370
|
* Construct a DELETE request which interprets the body as a `Blob` and returns the full response.
|
371
|
*
|
372
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
373
|
*/
|
374
|
delete(url: string, options: {
|
375
|
headers?: HttpHeaders;
|
376
|
observe: 'response';
|
377
|
params?: HttpParams;
|
378
|
reportProgress?: boolean;
|
379
|
responseType: 'blob';
|
380
|
withCredentials?: boolean;
|
381
|
}): Observable<HttpResponse<Blob>>;
|
382
|
/**
|
383
|
* Construct a DELETE request which interprets the body as text and returns the full response.
|
384
|
*
|
385
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
386
|
*/
|
387
|
delete(url: string, options: {
|
388
|
headers?: HttpHeaders;
|
389
|
observe: 'response';
|
390
|
params?: HttpParams;
|
391
|
reportProgress?: boolean;
|
392
|
responseType: 'text';
|
393
|
withCredentials?: boolean;
|
394
|
}): Observable<HttpResponse<string>>;
|
395
|
/**
|
396
|
* Construct a DELETE request which interprets the body as JSON and returns the full response.
|
397
|
*
|
398
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
399
|
*/
|
400
|
delete(url: string, options: {
|
401
|
headers?: HttpHeaders;
|
402
|
observe: 'response';
|
403
|
params?: HttpParams;
|
404
|
reportProgress?: boolean;
|
405
|
responseType?: 'json';
|
406
|
withCredentials?: boolean;
|
407
|
}): Observable<HttpResponse<Object>>;
|
408
|
/**
|
409
|
* Construct a DELETE request which interprets the body as JSON and returns the full response.
|
410
|
*
|
411
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
412
|
*/
|
413
|
delete<T>(url: string, options: {
|
414
|
headers?: HttpHeaders;
|
415
|
observe: 'response';
|
416
|
params?: HttpParams;
|
417
|
reportProgress?: boolean;
|
418
|
responseType?: 'json';
|
419
|
withCredentials?: boolean;
|
420
|
}): Observable<HttpResponse<T>>;
|
421
|
/**
|
422
|
* Construct a DELETE request which interprets the body as JSON and returns it.
|
423
|
*
|
424
|
* @return an `Observable` of the body as an `Object`.
|
425
|
*/
|
426
|
delete(url: string, options?: {
|
427
|
headers?: HttpHeaders;
|
428
|
observe?: 'body';
|
429
|
params?: HttpParams;
|
430
|
reportProgress?: boolean;
|
431
|
responseType?: 'json';
|
432
|
withCredentials?: boolean;
|
433
|
}): Observable<Object>;
|
434
|
/**
|
435
|
* Construct a DELETE request which interprets the body as JSON and returns it.
|
436
|
*
|
437
|
* @return an `Observable` of the body as type `T`.
|
438
|
*/
|
439
|
delete<T>(url: string, options?: {
|
440
|
headers?: HttpHeaders;
|
441
|
observe?: 'body';
|
442
|
params?: HttpParams;
|
443
|
reportProgress?: boolean;
|
444
|
responseType?: 'json';
|
445
|
withCredentials?: boolean;
|
446
|
}): Observable<T>;
|
447
|
/**
|
448
|
* Construct a GET request which interprets the body as an `ArrayBuffer` and returns it.
|
449
|
*
|
450
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
451
|
*/
|
452
|
get(url: string, options: {
|
453
|
headers?: HttpHeaders;
|
454
|
observe?: 'body';
|
455
|
params?: HttpParams;
|
456
|
reportProgress?: boolean;
|
457
|
responseType: 'arraybuffer';
|
458
|
withCredentials?: boolean;
|
459
|
}): Observable<ArrayBuffer>;
|
460
|
/**
|
461
|
* Construct a GET request which interprets the body as a `Blob` and returns it.
|
462
|
*
|
463
|
* @return an `Observable` of the body as a `Blob`.
|
464
|
*/
|
465
|
get(url: string, options: {
|
466
|
headers?: HttpHeaders;
|
467
|
observe?: 'body';
|
468
|
params?: HttpParams;
|
469
|
reportProgress?: boolean;
|
470
|
responseType: 'blob';
|
471
|
withCredentials?: boolean;
|
472
|
}): Observable<Blob>;
|
473
|
/**
|
474
|
* Construct a GET request which interprets the body as text and returns it.
|
475
|
*
|
476
|
* @return an `Observable` of the body as a `string`.
|
477
|
*/
|
478
|
get(url: string, options: {
|
479
|
headers?: HttpHeaders;
|
480
|
observe?: 'body';
|
481
|
params?: HttpParams;
|
482
|
reportProgress?: boolean;
|
483
|
responseType: 'text';
|
484
|
withCredentials?: boolean;
|
485
|
}): Observable<string>;
|
486
|
/**
|
487
|
* Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
488
|
*
|
489
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
490
|
*/
|
491
|
get(url: string, options: {
|
492
|
headers?: HttpHeaders;
|
493
|
observe: 'events';
|
494
|
params?: HttpParams;
|
495
|
reportProgress?: boolean;
|
496
|
responseType: 'arraybuffer';
|
497
|
withCredentials?: boolean;
|
498
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
499
|
/**
|
500
|
* Construct a GET request which interprets the body as a `Blob` and returns the full event stream.
|
501
|
*
|
502
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
503
|
*/
|
504
|
get(url: string, options: {
|
505
|
headers?: HttpHeaders;
|
506
|
observe: 'events';
|
507
|
params?: HttpParams;
|
508
|
reportProgress?: boolean;
|
509
|
responseType: 'blob';
|
510
|
withCredentials?: boolean;
|
511
|
}): Observable<HttpEvent<Blob>>;
|
512
|
/**
|
513
|
* Construct a GET request which interprets the body as text and returns the full event stream.
|
514
|
*
|
515
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
516
|
*/
|
517
|
get(url: string, options: {
|
518
|
headers?: HttpHeaders;
|
519
|
observe: 'events';
|
520
|
params?: HttpParams;
|
521
|
reportProgress?: boolean;
|
522
|
responseType: 'text';
|
523
|
withCredentials?: boolean;
|
524
|
}): Observable<HttpEvent<string>>;
|
525
|
/**
|
526
|
* Construct a GET request which interprets the body as JSON and returns the full event stream.
|
527
|
*
|
528
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
529
|
*/
|
530
|
get(url: string, options: {
|
531
|
headers?: HttpHeaders;
|
532
|
observe: 'events';
|
533
|
params?: HttpParams;
|
534
|
reportProgress?: boolean;
|
535
|
responseType?: 'json';
|
536
|
withCredentials?: boolean;
|
537
|
}): Observable<HttpEvent<Object>>;
|
538
|
/**
|
539
|
* Construct a GET request which interprets the body as JSON and returns the full event stream.
|
540
|
*
|
541
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
542
|
*/
|
543
|
get<T>(url: string, options: {
|
544
|
headers?: HttpHeaders;
|
545
|
observe: 'events';
|
546
|
params?: HttpParams;
|
547
|
reportProgress?: boolean;
|
548
|
responseType?: 'json';
|
549
|
withCredentials?: boolean;
|
550
|
}): Observable<HttpEvent<T>>;
|
551
|
/**
|
552
|
* Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full response.
|
553
|
*
|
554
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
555
|
*/
|
556
|
get(url: string, options: {
|
557
|
headers?: HttpHeaders;
|
558
|
observe: 'response';
|
559
|
params?: HttpParams;
|
560
|
reportProgress?: boolean;
|
561
|
responseType: 'arraybuffer';
|
562
|
withCredentials?: boolean;
|
563
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
564
|
/**
|
565
|
* Construct a GET request which interprets the body as a `Blob` and returns the full response.
|
566
|
*
|
567
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
568
|
*/
|
569
|
get(url: string, options: {
|
570
|
headers?: HttpHeaders;
|
571
|
observe: 'response';
|
572
|
params?: HttpParams;
|
573
|
reportProgress?: boolean;
|
574
|
responseType: 'blob';
|
575
|
withCredentials?: boolean;
|
576
|
}): Observable<HttpResponse<Blob>>;
|
577
|
/**
|
578
|
* Construct a GET request which interprets the body as text and returns the full response.
|
579
|
*
|
580
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
581
|
*/
|
582
|
get(url: string, options: {
|
583
|
headers?: HttpHeaders;
|
584
|
observe: 'response';
|
585
|
params?: HttpParams;
|
586
|
reportProgress?: boolean;
|
587
|
responseType: 'text';
|
588
|
withCredentials?: boolean;
|
589
|
}): Observable<HttpResponse<string>>;
|
590
|
/**
|
591
|
* Construct a GET request which interprets the body as JSON and returns the full response.
|
592
|
*
|
593
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
594
|
*/
|
595
|
get(url: string, options: {
|
596
|
headers?: HttpHeaders;
|
597
|
observe: 'response';
|
598
|
params?: HttpParams;
|
599
|
reportProgress?: boolean;
|
600
|
responseType?: 'json';
|
601
|
withCredentials?: boolean;
|
602
|
}): Observable<HttpResponse<Object>>;
|
603
|
/**
|
604
|
* Construct a GET request which interprets the body as JSON and returns the full response.
|
605
|
*
|
606
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
607
|
*/
|
608
|
get<T>(url: string, options: {
|
609
|
headers?: HttpHeaders;
|
610
|
observe: 'response';
|
611
|
params?: HttpParams;
|
612
|
reportProgress?: boolean;
|
613
|
responseType?: 'json';
|
614
|
withCredentials?: boolean;
|
615
|
}): Observable<HttpResponse<T>>;
|
616
|
/**
|
617
|
* Construct a GET request which interprets the body as JSON and returns it.
|
618
|
*
|
619
|
* @return an `Observable` of the body as an `Object`.
|
620
|
*/
|
621
|
get(url: string, options?: {
|
622
|
headers?: HttpHeaders;
|
623
|
observe?: 'body';
|
624
|
params?: HttpParams;
|
625
|
reportProgress?: boolean;
|
626
|
responseType?: 'json';
|
627
|
withCredentials?: boolean;
|
628
|
}): Observable<Object>;
|
629
|
/**
|
630
|
* Construct a GET request which interprets the body as JSON and returns it.
|
631
|
*
|
632
|
* @return an `Observable` of the body as type `T`.
|
633
|
*/
|
634
|
get<T>(url: string, options?: {
|
635
|
headers?: HttpHeaders;
|
636
|
observe?: 'body';
|
637
|
params?: HttpParams;
|
638
|
reportProgress?: boolean;
|
639
|
responseType?: 'json';
|
640
|
withCredentials?: boolean;
|
641
|
}): Observable<T>;
|
642
|
/**
|
643
|
* Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns it.
|
644
|
*
|
645
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
646
|
*/
|
647
|
head(url: string, options: {
|
648
|
headers?: HttpHeaders;
|
649
|
observe?: 'body';
|
650
|
params?: HttpParams;
|
651
|
reportProgress?: boolean;
|
652
|
responseType: 'arraybuffer';
|
653
|
withCredentials?: boolean;
|
654
|
}): Observable<ArrayBuffer>;
|
655
|
head(url: string, options: {
|
656
|
headers?: HttpHeaders;
|
657
|
observe?: 'body';
|
658
|
params?: HttpParams;
|
659
|
reportProgress?: boolean;
|
660
|
responseType: 'blob';
|
661
|
withCredentials?: boolean;
|
662
|
}): Observable<Blob>;
|
663
|
/**
|
664
|
* Construct a HEAD request which interprets the body as text and returns it.
|
665
|
*
|
666
|
* @return an `Observable` of the body as a `string`.
|
667
|
*/
|
668
|
head(url: string, options: {
|
669
|
headers?: HttpHeaders;
|
670
|
observe?: 'body';
|
671
|
params?: HttpParams;
|
672
|
reportProgress?: boolean;
|
673
|
responseType: 'text';
|
674
|
withCredentials?: boolean;
|
675
|
}): Observable<string>;
|
676
|
/**
|
677
|
* Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
678
|
*
|
679
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
680
|
*/
|
681
|
head(url: string, options: {
|
682
|
headers?: HttpHeaders;
|
683
|
observe: 'events';
|
684
|
params?: HttpParams;
|
685
|
reportProgress?: boolean;
|
686
|
responseType: 'arraybuffer';
|
687
|
withCredentials?: boolean;
|
688
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
689
|
/**
|
690
|
* Construct a HEAD request which interprets the body as a `Blob` and returns the full event stream.
|
691
|
*
|
692
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
693
|
*/
|
694
|
head(url: string, options: {
|
695
|
headers?: HttpHeaders;
|
696
|
observe: 'events';
|
697
|
params?: HttpParams;
|
698
|
reportProgress?: boolean;
|
699
|
responseType: 'blob';
|
700
|
withCredentials?: boolean;
|
701
|
}): Observable<HttpEvent<Blob>>;
|
702
|
/**
|
703
|
* Construct a HEAD request which interprets the body as text and returns the full event stream.
|
704
|
*
|
705
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
706
|
*/
|
707
|
head(url: string, options: {
|
708
|
headers?: HttpHeaders;
|
709
|
observe: 'events';
|
710
|
params?: HttpParams;
|
711
|
reportProgress?: boolean;
|
712
|
responseType: 'text';
|
713
|
withCredentials?: boolean;
|
714
|
}): Observable<HttpEvent<string>>;
|
715
|
/**
|
716
|
* Construct a HEAD request which interprets the body as JSON and returns the full event stream.
|
717
|
*
|
718
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
719
|
*/
|
720
|
head(url: string, options: {
|
721
|
headers?: HttpHeaders;
|
722
|
observe: 'events';
|
723
|
params?: HttpParams;
|
724
|
reportProgress?: boolean;
|
725
|
responseType?: 'json';
|
726
|
withCredentials?: boolean;
|
727
|
}): Observable<HttpEvent<Object>>;
|
728
|
/**
|
729
|
* Construct a HEAD request which interprets the body as JSON and returns the full event stream.
|
730
|
*
|
731
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
732
|
*/
|
733
|
head<T>(url: string, options: {
|
734
|
headers?: HttpHeaders;
|
735
|
observe: 'events';
|
736
|
params?: HttpParams;
|
737
|
reportProgress?: boolean;
|
738
|
responseType?: 'json';
|
739
|
withCredentials?: boolean;
|
740
|
}): Observable<HttpEvent<T>>;
|
741
|
/**
|
742
|
* Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full response.
|
743
|
*
|
744
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
745
|
*/
|
746
|
head(url: string, options: {
|
747
|
headers?: HttpHeaders;
|
748
|
observe: 'response';
|
749
|
params?: HttpParams;
|
750
|
reportProgress?: boolean;
|
751
|
responseType: 'arraybuffer';
|
752
|
withCredentials?: boolean;
|
753
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
754
|
/**
|
755
|
* Construct a HEAD request which interprets the body as a `Blob` and returns the full response.
|
756
|
*
|
757
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
758
|
*/
|
759
|
head(url: string, options: {
|
760
|
headers?: HttpHeaders;
|
761
|
observe: 'response';
|
762
|
params?: HttpParams;
|
763
|
reportProgress?: boolean;
|
764
|
responseType: 'blob';
|
765
|
withCredentials?: boolean;
|
766
|
}): Observable<HttpResponse<Blob>>;
|
767
|
/**
|
768
|
* Construct a HEAD request which interprets the body as text and returns the full response.
|
769
|
*
|
770
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
771
|
*/
|
772
|
head(url: string, options: {
|
773
|
headers?: HttpHeaders;
|
774
|
observe: 'response';
|
775
|
params?: HttpParams;
|
776
|
reportProgress?: boolean;
|
777
|
responseType: 'text';
|
778
|
withCredentials?: boolean;
|
779
|
}): Observable<HttpResponse<string>>;
|
780
|
/**
|
781
|
* Construct a HEAD request which interprets the body as JSON and returns the full response.
|
782
|
*
|
783
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
784
|
*/
|
785
|
head(url: string, options: {
|
786
|
headers?: HttpHeaders;
|
787
|
observe: 'response';
|
788
|
params?: HttpParams;
|
789
|
reportProgress?: boolean;
|
790
|
responseType?: 'json';
|
791
|
withCredentials?: boolean;
|
792
|
}): Observable<HttpResponse<Object>>;
|
793
|
/**
|
794
|
* Construct a HEAD request which interprets the body as JSON and returns the full response.
|
795
|
*
|
796
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
797
|
*/
|
798
|
head<T>(url: string, options: {
|
799
|
headers?: HttpHeaders;
|
800
|
observe: 'response';
|
801
|
params?: HttpParams;
|
802
|
reportProgress?: boolean;
|
803
|
responseType?: 'json';
|
804
|
withCredentials?: boolean;
|
805
|
}): Observable<HttpResponse<T>>;
|
806
|
/**
|
807
|
* Construct a HEAD request which interprets the body as JSON and returns it.
|
808
|
*
|
809
|
* @return an `Observable` of the body as an `Object`.
|
810
|
*/
|
811
|
head(url: string, options?: {
|
812
|
headers?: HttpHeaders;
|
813
|
observe?: 'body';
|
814
|
params?: HttpParams;
|
815
|
reportProgress?: boolean;
|
816
|
responseType?: 'json';
|
817
|
withCredentials?: boolean;
|
818
|
}): Observable<Object>;
|
819
|
/**
|
820
|
* Construct a HEAD request which interprets the body as JSON and returns it.
|
821
|
*
|
822
|
* @return an `Observable` of the body as type `T`.
|
823
|
*/
|
824
|
head<T>(url: string, options?: {
|
825
|
headers?: HttpHeaders;
|
826
|
observe?: 'body';
|
827
|
params?: HttpParams;
|
828
|
reportProgress?: boolean;
|
829
|
responseType?: 'json';
|
830
|
withCredentials?: boolean;
|
831
|
}): Observable<T>;
|
832
|
/**
|
833
|
* Construct a JSONP request for the given URL and name of the callback parameter.
|
834
|
*
|
835
|
* @return an `Observable` of the response object as an `Object`
|
836
|
*/
|
837
|
jsonp(url: string, callbackParam: string): Observable<Object>;
|
838
|
/**
|
839
|
* Construct a JSONP request for the given URL and name of the callback parameter.
|
840
|
*
|
841
|
* @return an `Observable` of the response object as type `T`.
|
842
|
*/
|
843
|
jsonp<T>(url: string, callbackParam: string): Observable<T>;
|
844
|
/**
|
845
|
* Make an OPTIONS request which interprets the body as an `ArrayBuffer` and returns it.
|
846
|
*
|
847
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
848
|
*/
|
849
|
options(url: string, options: {
|
850
|
headers?: HttpHeaders;
|
851
|
observe?: 'body';
|
852
|
params?: HttpParams;
|
853
|
reportProgress?: boolean;
|
854
|
responseType: 'arraybuffer';
|
855
|
withCredentials?: boolean;
|
856
|
}): Observable<ArrayBuffer>;
|
857
|
/**
|
858
|
* Construct an OPTIONS request which interprets the body as a `Blob` and returns it.
|
859
|
*
|
860
|
* @return an `Observable` of the body as a `Blob`.
|
861
|
*/
|
862
|
options(url: string, options: {
|
863
|
headers?: HttpHeaders;
|
864
|
observe?: 'body';
|
865
|
params?: HttpParams;
|
866
|
reportProgress?: boolean;
|
867
|
responseType: 'blob';
|
868
|
withCredentials?: boolean;
|
869
|
}): Observable<Blob>;
|
870
|
/**
|
871
|
* Construct a OPTIONS request which interprets the body as text and returns it.
|
872
|
*
|
873
|
* @return an `Observable` of the body as a `string`.
|
874
|
*/
|
875
|
options(url: string, options: {
|
876
|
headers?: HttpHeaders;
|
877
|
observe?: 'body';
|
878
|
params?: HttpParams;
|
879
|
reportProgress?: boolean;
|
880
|
responseType: 'text';
|
881
|
withCredentials?: boolean;
|
882
|
}): Observable<string>;
|
883
|
/**
|
884
|
* Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
885
|
*
|
886
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
887
|
*/
|
888
|
options(url: string, options: {
|
889
|
headers?: HttpHeaders;
|
890
|
observe: 'events';
|
891
|
params?: HttpParams;
|
892
|
reportProgress?: boolean;
|
893
|
responseType: 'arraybuffer';
|
894
|
withCredentials?: boolean;
|
895
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
896
|
/**
|
897
|
* Construct an OPTIONS request which interprets the body as a `Blob` and returns the full event stream.
|
898
|
*
|
899
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
900
|
*/
|
901
|
options(url: string, options: {
|
902
|
headers?: HttpHeaders;
|
903
|
observe: 'events';
|
904
|
params?: HttpParams;
|
905
|
reportProgress?: boolean;
|
906
|
responseType: 'blob';
|
907
|
withCredentials?: boolean;
|
908
|
}): Observable<HttpEvent<Blob>>;
|
909
|
/**
|
910
|
* Construct an OPTIONS request which interprets the body as text and returns the full event stream.
|
911
|
*
|
912
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
913
|
*/
|
914
|
options(url: string, options: {
|
915
|
headers?: HttpHeaders;
|
916
|
observe: 'events';
|
917
|
params?: HttpParams;
|
918
|
reportProgress?: boolean;
|
919
|
responseType: 'text';
|
920
|
withCredentials?: boolean;
|
921
|
}): Observable<HttpEvent<string>>;
|
922
|
/**
|
923
|
* Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
|
924
|
*
|
925
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
926
|
*/
|
927
|
options(url: string, options: {
|
928
|
headers?: HttpHeaders;
|
929
|
observe: 'events';
|
930
|
params?: HttpParams;
|
931
|
reportProgress?: boolean;
|
932
|
responseType?: 'json';
|
933
|
withCredentials?: boolean;
|
934
|
}): Observable<HttpEvent<Object>>;
|
935
|
/**
|
936
|
* Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
|
937
|
*
|
938
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
939
|
*/
|
940
|
options<T>(url: string, options: {
|
941
|
headers?: HttpHeaders;
|
942
|
observe: 'events';
|
943
|
params?: HttpParams;
|
944
|
reportProgress?: boolean;
|
945
|
responseType?: 'json';
|
946
|
withCredentials?: boolean;
|
947
|
}): Observable<HttpEvent<T>>;
|
948
|
/**
|
949
|
* Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full response.
|
950
|
*
|
951
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
952
|
*/
|
953
|
options(url: string, options: {
|
954
|
headers?: HttpHeaders;
|
955
|
observe: 'response';
|
956
|
params?: HttpParams;
|
957
|
reportProgress?: boolean;
|
958
|
responseType: 'arraybuffer';
|
959
|
withCredentials?: boolean;
|
960
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
961
|
/**
|
962
|
* Construct an OPTIONS request which interprets the body as a `Blob` and returns the full response.
|
963
|
*
|
964
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
965
|
*/
|
966
|
options(url: string, options: {
|
967
|
headers?: HttpHeaders;
|
968
|
observe: 'response';
|
969
|
params?: HttpParams;
|
970
|
reportProgress?: boolean;
|
971
|
responseType: 'blob';
|
972
|
withCredentials?: boolean;
|
973
|
}): Observable<HttpResponse<Blob>>;
|
974
|
/**
|
975
|
* Construct an OPTIONS request which interprets the body as text and returns the full response.
|
976
|
*
|
977
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
978
|
*/
|
979
|
options(url: string, options: {
|
980
|
headers?: HttpHeaders;
|
981
|
observe: 'response';
|
982
|
params?: HttpParams;
|
983
|
reportProgress?: boolean;
|
984
|
responseType: 'text';
|
985
|
withCredentials?: boolean;
|
986
|
}): Observable<HttpResponse<string>>;
|
987
|
/**
|
988
|
* Construct an OPTIONS request which interprets the body as JSON and returns the full response.
|
989
|
*
|
990
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
991
|
*/
|
992
|
options(url: string, options: {
|
993
|
headers?: HttpHeaders;
|
994
|
observe: 'response';
|
995
|
params?: HttpParams;
|
996
|
reportProgress?: boolean;
|
997
|
responseType?: 'json';
|
998
|
withCredentials?: boolean;
|
999
|
}): Observable<HttpResponse<Object>>;
|
1000
|
/**
|
1001
|
* Construct an OPTIONS request which interprets the body as JSON and returns the full response.
|
1002
|
*
|
1003
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
1004
|
*/
|
1005
|
options<T>(url: string, options: {
|
1006
|
headers?: HttpHeaders;
|
1007
|
observe: 'response';
|
1008
|
params?: HttpParams;
|
1009
|
reportProgress?: boolean;
|
1010
|
responseType?: 'json';
|
1011
|
withCredentials?: boolean;
|
1012
|
}): Observable<HttpResponse<T>>;
|
1013
|
/**
|
1014
|
* Construct an OPTIONS request which interprets the body as JSON and returns it.
|
1015
|
*
|
1016
|
* @return an `Observable` of the body as an `Object`.
|
1017
|
*/
|
1018
|
options(url: string, options?: {
|
1019
|
headers?: HttpHeaders;
|
1020
|
observe?: 'body';
|
1021
|
params?: HttpParams;
|
1022
|
reportProgress?: boolean;
|
1023
|
responseType?: 'json';
|
1024
|
withCredentials?: boolean;
|
1025
|
}): Observable<Object>;
|
1026
|
/**
|
1027
|
* Construct an OPTIONS request which interprets the body as JSON and returns it.
|
1028
|
*
|
1029
|
* @return an `Observable` of the body as type `T`.
|
1030
|
*/
|
1031
|
options<T>(url: string, options?: {
|
1032
|
headers?: HttpHeaders;
|
1033
|
observe?: 'body';
|
1034
|
params?: HttpParams;
|
1035
|
reportProgress?: boolean;
|
1036
|
responseType?: 'json';
|
1037
|
withCredentials?: boolean;
|
1038
|
}): Observable<T>;
|
1039
|
/**
|
1040
|
* Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns it.
|
1041
|
*
|
1042
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
1043
|
*/
|
1044
|
patch(url: string, body: any | null, options: {
|
1045
|
headers?: HttpHeaders;
|
1046
|
observe?: 'body';
|
1047
|
params?: HttpParams;
|
1048
|
reportProgress?: boolean;
|
1049
|
responseType: 'arraybuffer';
|
1050
|
withCredentials?: boolean;
|
1051
|
}): Observable<ArrayBuffer>;
|
1052
|
/**
|
1053
|
* Construct a PATCH request which interprets the body as a `Blob` and returns it.
|
1054
|
*
|
1055
|
* @return an `Observable` of the body as a `Blob`.
|
1056
|
*/
|
1057
|
patch(url: string, body: any | null, options: {
|
1058
|
headers?: HttpHeaders;
|
1059
|
observe?: 'body';
|
1060
|
params?: HttpParams;
|
1061
|
reportProgress?: boolean;
|
1062
|
responseType: 'blob';
|
1063
|
withCredentials?: boolean;
|
1064
|
}): Observable<Blob>;
|
1065
|
/**
|
1066
|
* Construct a PATCH request which interprets the body as text and returns it.
|
1067
|
*
|
1068
|
* @return an `Observable` of the body as a `string`.
|
1069
|
*/
|
1070
|
patch(url: string, body: any | null, options: {
|
1071
|
headers?: HttpHeaders;
|
1072
|
observe?: 'body';
|
1073
|
params?: HttpParams;
|
1074
|
reportProgress?: boolean;
|
1075
|
responseType: 'text';
|
1076
|
withCredentials?: boolean;
|
1077
|
}): Observable<string>;
|
1078
|
/**
|
1079
|
* Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
1080
|
*
|
1081
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
1082
|
*/
|
1083
|
patch(url: string, body: any | null, options: {
|
1084
|
headers?: HttpHeaders;
|
1085
|
observe: 'events';
|
1086
|
params?: HttpParams;
|
1087
|
reportProgress?: boolean;
|
1088
|
responseType: 'arraybuffer';
|
1089
|
withCredentials?: boolean;
|
1090
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
1091
|
/**
|
1092
|
* Construct a PATCH request which interprets the body as a `Blob` and returns the full event stream.
|
1093
|
*
|
1094
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
1095
|
*/
|
1096
|
patch(url: string, body: any | null, options: {
|
1097
|
headers?: HttpHeaders;
|
1098
|
observe: 'events';
|
1099
|
params?: HttpParams;
|
1100
|
reportProgress?: boolean;
|
1101
|
responseType: 'blob';
|
1102
|
withCredentials?: boolean;
|
1103
|
}): Observable<HttpEvent<Blob>>;
|
1104
|
/**
|
1105
|
* Construct a PATCH request which interprets the body as text and returns the full event stream.
|
1106
|
*
|
1107
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
1108
|
*/
|
1109
|
patch(url: string, body: any | null, options: {
|
1110
|
headers?: HttpHeaders;
|
1111
|
observe: 'events';
|
1112
|
params?: HttpParams;
|
1113
|
reportProgress?: boolean;
|
1114
|
responseType: 'text';
|
1115
|
withCredentials?: boolean;
|
1116
|
}): Observable<HttpEvent<string>>;
|
1117
|
/**
|
1118
|
* Construct a PATCH request which interprets the body as JSON and returns the full event stream.
|
1119
|
*
|
1120
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
1121
|
*/
|
1122
|
patch(url: string, body: any | null, options: {
|
1123
|
headers?: HttpHeaders;
|
1124
|
observe: 'events';
|
1125
|
params?: HttpParams;
|
1126
|
reportProgress?: boolean;
|
1127
|
responseType?: 'json';
|
1128
|
withCredentials?: boolean;
|
1129
|
}): Observable<HttpEvent<Object>>;
|
1130
|
/**
|
1131
|
* Construct a PATCH request which interprets the body as JSON and returns the full event stream.
|
1132
|
*
|
1133
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
1134
|
*/
|
1135
|
patch<T>(url: string, body: any | null, options: {
|
1136
|
headers?: HttpHeaders;
|
1137
|
observe: 'events';
|
1138
|
params?: HttpParams;
|
1139
|
reportProgress?: boolean;
|
1140
|
responseType?: 'json';
|
1141
|
withCredentials?: boolean;
|
1142
|
}): Observable<HttpEvent<T>>;
|
1143
|
/**
|
1144
|
* Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full response.
|
1145
|
*
|
1146
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
1147
|
*/
|
1148
|
patch(url: string, body: any | null, options: {
|
1149
|
headers?: HttpHeaders;
|
1150
|
observe: 'response';
|
1151
|
params?: HttpParams;
|
1152
|
reportProgress?: boolean;
|
1153
|
responseType: 'arraybuffer';
|
1154
|
withCredentials?: boolean;
|
1155
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
1156
|
/**
|
1157
|
* Construct a PATCH request which interprets the body as a `Blob` and returns the full response.
|
1158
|
*
|
1159
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
1160
|
*/
|
1161
|
patch(url: string, body: any | null, options: {
|
1162
|
headers?: HttpHeaders;
|
1163
|
observe: 'response';
|
1164
|
params?: HttpParams;
|
1165
|
reportProgress?: boolean;
|
1166
|
responseType: 'blob';
|
1167
|
withCredentials?: boolean;
|
1168
|
}): Observable<HttpResponse<Blob>>;
|
1169
|
/**
|
1170
|
* Construct a PATCH request which interprets the body as text and returns the full response.
|
1171
|
*
|
1172
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
1173
|
*/
|
1174
|
patch(url: string, body: any | null, options: {
|
1175
|
headers?: HttpHeaders;
|
1176
|
observe: 'response';
|
1177
|
params?: HttpParams;
|
1178
|
reportProgress?: boolean;
|
1179
|
responseType: 'text';
|
1180
|
withCredentials?: boolean;
|
1181
|
}): Observable<HttpResponse<string>>;
|
1182
|
/**
|
1183
|
* Construct a PATCH request which interprets the body as JSON and returns the full response.
|
1184
|
*
|
1185
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
1186
|
*/
|
1187
|
patch(url: string, body: any | null, options: {
|
1188
|
headers?: HttpHeaders;
|
1189
|
observe: 'response';
|
1190
|
params?: HttpParams;
|
1191
|
reportProgress?: boolean;
|
1192
|
responseType?: 'json';
|
1193
|
withCredentials?: boolean;
|
1194
|
}): Observable<HttpResponse<Object>>;
|
1195
|
/**
|
1196
|
* Construct a PATCH request which interprets the body as JSON and returns the full response.
|
1197
|
*
|
1198
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
1199
|
*/
|
1200
|
patch<T>(url: string, body: any | null, options: {
|
1201
|
headers?: HttpHeaders;
|
1202
|
observe: 'response';
|
1203
|
params?: HttpParams;
|
1204
|
reportProgress?: boolean;
|
1205
|
responseType?: 'json';
|
1206
|
withCredentials?: boolean;
|
1207
|
}): Observable<HttpResponse<T>>;
|
1208
|
/**
|
1209
|
* Construct a PATCH request which interprets the body as JSON and returns it.
|
1210
|
*
|
1211
|
* @return an `Observable` of the body as an `Object`.
|
1212
|
*/
|
1213
|
patch(url: string, body: any | null, options?: {
|
1214
|
headers?: HttpHeaders;
|
1215
|
observe?: 'body';
|
1216
|
params?: HttpParams;
|
1217
|
reportProgress?: boolean;
|
1218
|
responseType?: 'json';
|
1219
|
withCredentials?: boolean;
|
1220
|
}): Observable<Object>;
|
1221
|
/**
|
1222
|
* Construct a PATCH request which interprets the body as JSON and returns it.
|
1223
|
*
|
1224
|
* @return an `Observable` of the body as type `T`.
|
1225
|
*/
|
1226
|
patch<T>(url: string, body: any | null, options?: {
|
1227
|
headers?: HttpHeaders;
|
1228
|
observe?: 'body';
|
1229
|
params?: HttpParams;
|
1230
|
reportProgress?: boolean;
|
1231
|
responseType?: 'json';
|
1232
|
withCredentials?: boolean;
|
1233
|
}): Observable<T>;
|
1234
|
/**
|
1235
|
* Construct a POST request which interprets the body as an `ArrayBuffer` and returns it.
|
1236
|
*
|
1237
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
1238
|
*/
|
1239
|
post(url: string, body: any | null, options: {
|
1240
|
headers?: HttpHeaders;
|
1241
|
observe?: 'body';
|
1242
|
params?: HttpParams;
|
1243
|
reportProgress?: boolean;
|
1244
|
responseType: 'arraybuffer';
|
1245
|
withCredentials?: boolean;
|
1246
|
}): Observable<ArrayBuffer>;
|
1247
|
/**
|
1248
|
* Construct a POST request which interprets the body as a `Blob` and returns it.
|
1249
|
*
|
1250
|
* @return an `Observable` of the body as a `Blob`.
|
1251
|
*/
|
1252
|
post(url: string, body: any | null, options: {
|
1253
|
headers?: HttpHeaders;
|
1254
|
observe?: 'body';
|
1255
|
params?: HttpParams;
|
1256
|
reportProgress?: boolean;
|
1257
|
responseType: 'blob';
|
1258
|
withCredentials?: boolean;
|
1259
|
}): Observable<Blob>;
|
1260
|
/**
|
1261
|
* Construct a POST request which interprets the body as text and returns it.
|
1262
|
*
|
1263
|
* @return an `Observable` of the body as a `string`.
|
1264
|
*/
|
1265
|
post(url: string, body: any | null, options: {
|
1266
|
headers?: HttpHeaders;
|
1267
|
observe?: 'body';
|
1268
|
params?: HttpParams;
|
1269
|
reportProgress?: boolean;
|
1270
|
responseType: 'text';
|
1271
|
withCredentials?: boolean;
|
1272
|
}): Observable<string>;
|
1273
|
/**
|
1274
|
* Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
1275
|
*
|
1276
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
1277
|
*/
|
1278
|
post(url: string, body: any | null, options: {
|
1279
|
headers?: HttpHeaders;
|
1280
|
observe: 'events';
|
1281
|
params?: HttpParams;
|
1282
|
reportProgress?: boolean;
|
1283
|
responseType: 'arraybuffer';
|
1284
|
withCredentials?: boolean;
|
1285
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
1286
|
/**
|
1287
|
* Construct a POST request which interprets the body as a `Blob` and returns the full event stream.
|
1288
|
*
|
1289
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
1290
|
*/
|
1291
|
post(url: string, body: any | null, options: {
|
1292
|
headers?: HttpHeaders;
|
1293
|
observe: 'events';
|
1294
|
params?: HttpParams;
|
1295
|
reportProgress?: boolean;
|
1296
|
responseType: 'blob';
|
1297
|
withCredentials?: boolean;
|
1298
|
}): Observable<HttpEvent<Blob>>;
|
1299
|
/**
|
1300
|
* Construct a POST request which interprets the body as text and returns the full event stream.
|
1301
|
*
|
1302
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
1303
|
*/
|
1304
|
post(url: string, body: any | null, options: {
|
1305
|
headers?: HttpHeaders;
|
1306
|
observe: 'events';
|
1307
|
params?: HttpParams;
|
1308
|
reportProgress?: boolean;
|
1309
|
responseType: 'text';
|
1310
|
withCredentials?: boolean;
|
1311
|
}): Observable<HttpEvent<string>>;
|
1312
|
/**
|
1313
|
* Construct a POST request which interprets the body as JSON and returns the full event stream.
|
1314
|
*
|
1315
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
1316
|
*/
|
1317
|
post(url: string, body: any | null, options: {
|
1318
|
headers?: HttpHeaders;
|
1319
|
observe: 'events';
|
1320
|
params?: HttpParams;
|
1321
|
reportProgress?: boolean;
|
1322
|
responseType?: 'json';
|
1323
|
withCredentials?: boolean;
|
1324
|
}): Observable<HttpEvent<Object>>;
|
1325
|
/**
|
1326
|
* Construct a POST request which interprets the body as JSON and returns the full event stream.
|
1327
|
*
|
1328
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
1329
|
*/
|
1330
|
post<T>(url: string, body: any | null, options: {
|
1331
|
headers?: HttpHeaders;
|
1332
|
observe: 'events';
|
1333
|
params?: HttpParams;
|
1334
|
reportProgress?: boolean;
|
1335
|
responseType?: 'json';
|
1336
|
withCredentials?: boolean;
|
1337
|
}): Observable<HttpEvent<T>>;
|
1338
|
/**
|
1339
|
* Construct a POST request which interprets the body as an `ArrayBuffer` and returns the full response.
|
1340
|
*
|
1341
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
1342
|
*/
|
1343
|
post(url: string, body: any | null, options: {
|
1344
|
headers?: HttpHeaders;
|
1345
|
observe: 'response';
|
1346
|
params?: HttpParams;
|
1347
|
reportProgress?: boolean;
|
1348
|
responseType: 'arraybuffer';
|
1349
|
withCredentials?: boolean;
|
1350
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
1351
|
/**
|
1352
|
* Construct a POST request which interprets the body as a `Blob` and returns the full response.
|
1353
|
*
|
1354
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
1355
|
*/
|
1356
|
post(url: string, body: any | null, options: {
|
1357
|
headers?: HttpHeaders;
|
1358
|
observe: 'response';
|
1359
|
params?: HttpParams;
|
1360
|
reportProgress?: boolean;
|
1361
|
responseType: 'blob';
|
1362
|
withCredentials?: boolean;
|
1363
|
}): Observable<HttpResponse<Blob>>;
|
1364
|
/**
|
1365
|
* Construct a POST request which interprets the body as text and returns the full response.
|
1366
|
*
|
1367
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
1368
|
*/
|
1369
|
post(url: string, body: any | null, options: {
|
1370
|
headers?: HttpHeaders;
|
1371
|
observe: 'response';
|
1372
|
params?: HttpParams;
|
1373
|
reportProgress?: boolean;
|
1374
|
responseType: 'text';
|
1375
|
withCredentials?: boolean;
|
1376
|
}): Observable<HttpResponse<string>>;
|
1377
|
/**
|
1378
|
* Construct a POST request which interprets the body as JSON and returns the full response.
|
1379
|
*
|
1380
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
1381
|
*/
|
1382
|
post(url: string, body: any | null, options: {
|
1383
|
headers?: HttpHeaders;
|
1384
|
observe: 'response';
|
1385
|
params?: HttpParams;
|
1386
|
reportProgress?: boolean;
|
1387
|
responseType?: 'json';
|
1388
|
withCredentials?: boolean;
|
1389
|
}): Observable<HttpResponse<Object>>;
|
1390
|
/**
|
1391
|
* Construct a POST request which interprets the body as JSON and returns the full response.
|
1392
|
*
|
1393
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
1394
|
*/
|
1395
|
post<T>(url: string, body: any | null, options: {
|
1396
|
headers?: HttpHeaders;
|
1397
|
observe: 'response';
|
1398
|
params?: HttpParams;
|
1399
|
reportProgress?: boolean;
|
1400
|
responseType?: 'json';
|
1401
|
withCredentials?: boolean;
|
1402
|
}): Observable<HttpResponse<T>>;
|
1403
|
/**
|
1404
|
* Construct a POST request which interprets the body as JSON and returns it.
|
1405
|
*
|
1406
|
* @return an `Observable` of the body as an `Object`.
|
1407
|
*/
|
1408
|
post(url: string, body: any | null, options?: {
|
1409
|
headers?: HttpHeaders;
|
1410
|
observe?: 'body';
|
1411
|
params?: HttpParams;
|
1412
|
reportProgress?: boolean;
|
1413
|
responseType?: 'json';
|
1414
|
withCredentials?: boolean;
|
1415
|
}): Observable<Object>;
|
1416
|
/**
|
1417
|
* Construct a POST request which interprets the body as JSON and returns it.
|
1418
|
*
|
1419
|
* @return an `Observable` of the body as type `T`.
|
1420
|
*/
|
1421
|
post<T>(url: string, body: any | null, options?: {
|
1422
|
headers?: HttpHeaders;
|
1423
|
observe?: 'body';
|
1424
|
params?: HttpParams;
|
1425
|
reportProgress?: boolean;
|
1426
|
responseType?: 'json';
|
1427
|
withCredentials?: boolean;
|
1428
|
}): Observable<T>;
|
1429
|
/**
|
1430
|
* Construct a PUT request which interprets the body as an `ArrayBuffer` and returns it.
|
1431
|
*
|
1432
|
* @return an `Observable` of the body as an `ArrayBuffer`.
|
1433
|
*/
|
1434
|
put(url: string, body: any | null, options: {
|
1435
|
headers?: HttpHeaders;
|
1436
|
observe?: 'body';
|
1437
|
params?: HttpParams;
|
1438
|
reportProgress?: boolean;
|
1439
|
responseType: 'arraybuffer';
|
1440
|
withCredentials?: boolean;
|
1441
|
}): Observable<ArrayBuffer>;
|
1442
|
/**
|
1443
|
* Construct a PUT request which interprets the body as a `Blob` and returns it.
|
1444
|
*
|
1445
|
* @return an `Observable` of the body as a `Blob`.
|
1446
|
*/
|
1447
|
put(url: string, body: any | null, options: {
|
1448
|
headers?: HttpHeaders;
|
1449
|
observe?: 'body';
|
1450
|
params?: HttpParams;
|
1451
|
reportProgress?: boolean;
|
1452
|
responseType: 'blob';
|
1453
|
withCredentials?: boolean;
|
1454
|
}): Observable<Blob>;
|
1455
|
/**
|
1456
|
* Construct a PUT request which interprets the body as text and returns it.
|
1457
|
*
|
1458
|
* @return an `Observable` of the body as a `string`.
|
1459
|
*/
|
1460
|
put(url: string, body: any | null, options: {
|
1461
|
headers?: HttpHeaders;
|
1462
|
observe?: 'body';
|
1463
|
params?: HttpParams;
|
1464
|
reportProgress?: boolean;
|
1465
|
responseType: 'text';
|
1466
|
withCredentials?: boolean;
|
1467
|
}): Observable<string>;
|
1468
|
/**
|
1469
|
* Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full event stream.
|
1470
|
*
|
1471
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
|
1472
|
*/
|
1473
|
put(url: string, body: any | null, options: {
|
1474
|
headers?: HttpHeaders;
|
1475
|
observe: 'events';
|
1476
|
params?: HttpParams;
|
1477
|
reportProgress?: boolean;
|
1478
|
responseType: 'arraybuffer';
|
1479
|
withCredentials?: boolean;
|
1480
|
}): Observable<HttpEvent<ArrayBuffer>>;
|
1481
|
/**
|
1482
|
* Construct a PUT request which interprets the body as a `Blob` and returns the full event stream.
|
1483
|
*
|
1484
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
|
1485
|
*/
|
1486
|
put(url: string, body: any | null, options: {
|
1487
|
headers?: HttpHeaders;
|
1488
|
observe: 'events';
|
1489
|
params?: HttpParams;
|
1490
|
reportProgress?: boolean;
|
1491
|
responseType: 'blob';
|
1492
|
withCredentials?: boolean;
|
1493
|
}): Observable<HttpEvent<Blob>>;
|
1494
|
/**
|
1495
|
* Construct a PUT request which interprets the body as text and returns the full event stream.
|
1496
|
*
|
1497
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
|
1498
|
*/
|
1499
|
put(url: string, body: any | null, options: {
|
1500
|
headers?: HttpHeaders;
|
1501
|
observe: 'events';
|
1502
|
params?: HttpParams;
|
1503
|
reportProgress?: boolean;
|
1504
|
responseType: 'text';
|
1505
|
withCredentials?: boolean;
|
1506
|
}): Observable<HttpEvent<string>>;
|
1507
|
/**
|
1508
|
* Construct a PUT request which interprets the body as JSON and returns the full event stream.
|
1509
|
*
|
1510
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
|
1511
|
*/
|
1512
|
put(url: string, body: any | null, options: {
|
1513
|
headers?: HttpHeaders;
|
1514
|
observe: 'events';
|
1515
|
params?: HttpParams;
|
1516
|
reportProgress?: boolean;
|
1517
|
responseType?: 'json';
|
1518
|
withCredentials?: boolean;
|
1519
|
}): Observable<HttpEvent<Object>>;
|
1520
|
/**
|
1521
|
* Construct a PUT request which interprets the body as JSON and returns the full event stream.
|
1522
|
*
|
1523
|
* @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
|
1524
|
*/
|
1525
|
put<T>(url: string, body: any | null, options: {
|
1526
|
headers?: HttpHeaders;
|
1527
|
observe: 'events';
|
1528
|
responseType?: 'json';
|
1529
|
withCredentials?: boolean;
|
1530
|
}): Observable<HttpEvent<T>>;
|
1531
|
/**
|
1532
|
* Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full response.
|
1533
|
*
|
1534
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
|
1535
|
*/
|
1536
|
put(url: string, body: any | null, options: {
|
1537
|
headers?: HttpHeaders;
|
1538
|
observe: 'response';
|
1539
|
params?: HttpParams;
|
1540
|
reportProgress?: boolean;
|
1541
|
responseType: 'arraybuffer';
|
1542
|
withCredentials?: boolean;
|
1543
|
}): Observable<HttpResponse<ArrayBuffer>>;
|
1544
|
/**
|
1545
|
* Construct a PUT request which interprets the body as a `Blob` and returns the full response.
|
1546
|
*
|
1547
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
|
1548
|
*/
|
1549
|
put(url: string, body: any | null, options: {
|
1550
|
headers?: HttpHeaders;
|
1551
|
observe: 'response';
|
1552
|
params?: HttpParams;
|
1553
|
reportProgress?: boolean;
|
1554
|
responseType: 'blob';
|
1555
|
withCredentials?: boolean;
|
1556
|
}): Observable<HttpResponse<Blob>>;
|
1557
|
/**
|
1558
|
* Construct a PUT request which interprets the body as text and returns the full response.
|
1559
|
*
|
1560
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
|
1561
|
*/
|
1562
|
put(url: string, body: any | null, options: {
|
1563
|
headers?: HttpHeaders;
|
1564
|
observe: 'response';
|
1565
|
params?: HttpParams;
|
1566
|
reportProgress?: boolean;
|
1567
|
responseType: 'text';
|
1568
|
withCredentials?: boolean;
|
1569
|
}): Observable<HttpResponse<string>>;
|
1570
|
/**
|
1571
|
* Construct a PUT request which interprets the body as JSON and returns the full response.
|
1572
|
*
|
1573
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
|
1574
|
*/
|
1575
|
put(url: string, body: any | null, options: {
|
1576
|
headers?: HttpHeaders;
|
1577
|
observe: 'response';
|
1578
|
params?: HttpParams;
|
1579
|
reportProgress?: boolean;
|
1580
|
responseType?: 'json';
|
1581
|
withCredentials?: boolean;
|
1582
|
}): Observable<HttpResponse<Object>>;
|
1583
|
/**
|
1584
|
* Construct a PUT request which interprets the body as JSON and returns the full response.
|
1585
|
*
|
1586
|
* @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
|
1587
|
*/
|
1588
|
put<T>(url: string, body: any | null, options: {
|
1589
|
headers?: HttpHeaders;
|
1590
|
observe: 'response';
|
1591
|
params?: HttpParams;
|
1592
|
reportProgress?: boolean;
|
1593
|
responseType?: 'json';
|
1594
|
withCredentials?: boolean;
|
1595
|
}): Observable<HttpResponse<T>>;
|
1596
|
/**
|
1597
|
* Construct a PUT request which interprets the body as JSON and returns it.
|
1598
|
*
|
1599
|
* @return an `Observable` of the body as an `Object`.
|
1600
|
*/
|
1601
|
put(url: string, body: any | null, options?: {
|
1602
|
headers?: HttpHeaders;
|
1603
|
observe?: 'body';
|
1604
|
params?: HttpParams;
|
1605
|
reportProgress?: boolean;
|
1606
|
responseType?: 'json';
|
1607
|
withCredentials?: boolean;
|
1608
|
}): Observable<Object>;
|
1609
|
/**
|
1610
|
* Construct a PUT request which interprets the body as JSON and returns it.
|
1611
|
*
|
1612
|
* @return an `Observable` of the body as type `T`.
|
1613
|
*/
|
1614
|
put<T>(url: string, body: any | null, options?: {
|
1615
|
headers?: HttpHeaders;
|
1616
|
observe?: 'body';
|
1617
|
params?: HttpParams;
|
1618
|
reportProgress?: boolean;
|
1619
|
responseType?: 'json';
|
1620
|
withCredentials?: boolean;
|
1621
|
}): Observable<T>;
|
1622
|
}
|