@alterior/http 3.13.3 → 3.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/backend.d.ts +38 -38
  2. package/dist/backend.js +38 -38
  3. package/dist/client.d.ts +2108 -2108
  4. package/dist/client.js +265 -265
  5. package/dist/client.js.map +1 -1
  6. package/dist/headers.d.ts +57 -57
  7. package/dist/headers.js +187 -187
  8. package/dist/headers.js.map +1 -1
  9. package/dist/index.d.ts +18 -18
  10. package/dist/index.js +42 -42
  11. package/dist/interceptor.d.ts +63 -63
  12. package/dist/interceptor.js +43 -43
  13. package/dist/interceptor.js.map +1 -1
  14. package/dist/module.d.ts +101 -101
  15. package/dist/module.js +188 -188
  16. package/dist/module.js.map +1 -1
  17. package/dist/params.d.ts +98 -98
  18. package/dist/params.js +184 -184
  19. package/dist/params.js.map +1 -1
  20. package/dist/request.d.ts +130 -130
  21. package/dist/request.js +260 -260
  22. package/dist/request.js.map +1 -1
  23. package/dist/response.d.ts +267 -267
  24. package/dist/response.js +165 -165
  25. package/dist/response.js.map +1 -1
  26. package/dist/server.d.ts +28 -28
  27. package/dist/server.js +119 -119
  28. package/dist/server.js.map +1 -1
  29. package/dist/test/client.test.d.ts +8 -8
  30. package/dist/test/client.test.js +163 -163
  31. package/dist/test/client.test.js.map +1 -1
  32. package/dist/test/headers.test.d.ts +1 -1
  33. package/dist/test/headers.test.js +126 -126
  34. package/dist/test/module.test.d.ts +1 -1
  35. package/dist/test/module.test.js +117 -117
  36. package/dist/test/module.test.js.map +1 -1
  37. package/dist/test/params.test.d.ts +1 -1
  38. package/dist/test/params.test.js +63 -63
  39. package/dist/test/request.test.d.ts +8 -8
  40. package/dist/test/request.test.js +159 -159
  41. package/dist/test/request.test.js.map +1 -1
  42. package/dist/test/response.test.d.ts +1 -1
  43. package/dist/test/response.test.js +79 -79
  44. package/dist/test/response.test.js.map +1 -1
  45. package/dist/test/test.d.ts +1 -1
  46. package/dist/test/test.js +16 -16
  47. package/dist/test/xhr.mock.d.ts +48 -48
  48. package/dist/test/xhr.mock.js +94 -94
  49. package/dist/test/xhr.mock.js.map +1 -1
  50. package/dist/test/xhr.test.d.ts +1 -1
  51. package/dist/test/xhr.test.js +344 -344
  52. package/dist/test/xhr.test.js.map +1 -1
  53. package/dist/test/xsrf.test.d.ts +1 -1
  54. package/dist/test/xsrf.test.js +63 -63
  55. package/dist/test/xsrf.test.js.map +1 -1
  56. package/dist/testing/api.d.ts +102 -102
  57. package/dist/testing/api.js +19 -19
  58. package/dist/testing/backend.d.ts +63 -63
  59. package/dist/testing/backend.js +141 -141
  60. package/dist/testing/backend.js.map +1 -1
  61. package/dist/testing/index.d.ts +10 -10
  62. package/dist/testing/index.js +16 -16
  63. package/dist/testing/module.d.ts +16 -16
  64. package/dist/testing/module.js +38 -38
  65. package/dist/testing/module.js.map +1 -1
  66. package/dist/testing/request.d.ts +56 -56
  67. package/dist/testing/request.js +177 -177
  68. package/dist/testing/request.js.map +1 -1
  69. package/dist/testing/request.test.d.ts +8 -8
  70. package/dist/testing/request.test.js +24 -24
  71. package/dist/xhr.d.ts +42 -42
  72. package/dist/xhr.js +298 -298
  73. package/dist/xhr.js.map +1 -1
  74. package/dist/xsrf.d.ts +37 -37
  75. package/dist/xsrf.js +55 -55
  76. package/dist/xsrf.js.map +1 -1
  77. package/dist.esm/backend.d.ts +38 -38
  78. package/dist.esm/backend.js +33 -33
  79. package/dist.esm/client.d.ts +2108 -2108
  80. package/dist.esm/client.js +262 -262
  81. package/dist.esm/client.js.map +1 -1
  82. package/dist.esm/headers.d.ts +57 -57
  83. package/dist.esm/headers.js +183 -183
  84. package/dist.esm/headers.js.map +1 -1
  85. package/dist.esm/index.d.ts +18 -18
  86. package/dist.esm/index.js +18 -18
  87. package/dist.esm/interceptor.d.ts +63 -63
  88. package/dist.esm/interceptor.js +39 -39
  89. package/dist.esm/interceptor.js.map +1 -1
  90. package/dist.esm/module.d.ts +101 -101
  91. package/dist.esm/module.js +183 -183
  92. package/dist.esm/module.js.map +1 -1
  93. package/dist.esm/params.d.ts +98 -98
  94. package/dist.esm/params.js +179 -179
  95. package/dist.esm/params.js.map +1 -1
  96. package/dist.esm/request.d.ts +130 -130
  97. package/dist.esm/request.js +256 -256
  98. package/dist.esm/request.js.map +1 -1
  99. package/dist.esm/response.d.ts +267 -267
  100. package/dist.esm/response.js +158 -158
  101. package/dist.esm/response.js.map +1 -1
  102. package/dist.esm/server.d.ts +28 -28
  103. package/dist.esm/server.js +113 -113
  104. package/dist.esm/server.js.map +1 -1
  105. package/dist.esm/test/client.test.d.ts +8 -8
  106. package/dist.esm/test/client.test.js +161 -161
  107. package/dist.esm/test/client.test.js.map +1 -1
  108. package/dist.esm/test/headers.test.d.ts +1 -1
  109. package/dist.esm/test/headers.test.js +124 -124
  110. package/dist.esm/test/module.test.d.ts +1 -1
  111. package/dist.esm/test/module.test.js +115 -115
  112. package/dist.esm/test/module.test.js.map +1 -1
  113. package/dist.esm/test/params.test.d.ts +1 -1
  114. package/dist.esm/test/params.test.js +61 -61
  115. package/dist.esm/test/request.test.d.ts +8 -8
  116. package/dist.esm/test/request.test.js +157 -157
  117. package/dist.esm/test/request.test.js.map +1 -1
  118. package/dist.esm/test/response.test.d.ts +1 -1
  119. package/dist.esm/test/response.test.js +77 -77
  120. package/dist.esm/test/response.test.js.map +1 -1
  121. package/dist.esm/test/test.d.ts +1 -1
  122. package/dist.esm/test/test.js +14 -14
  123. package/dist.esm/test/xhr.mock.d.ts +48 -48
  124. package/dist.esm/test/xhr.mock.js +88 -88
  125. package/dist.esm/test/xhr.mock.js.map +1 -1
  126. package/dist.esm/test/xhr.test.d.ts +1 -1
  127. package/dist.esm/test/xhr.test.js +342 -342
  128. package/dist.esm/test/xhr.test.js.map +1 -1
  129. package/dist.esm/test/xsrf.test.d.ts +1 -1
  130. package/dist.esm/test/xsrf.test.js +61 -61
  131. package/dist.esm/test/xsrf.test.js.map +1 -1
  132. package/dist.esm/testing/api.d.ts +102 -102
  133. package/dist.esm/testing/api.js +15 -15
  134. package/dist.esm/testing/backend.d.ts +63 -63
  135. package/dist.esm/testing/backend.js +138 -138
  136. package/dist.esm/testing/backend.js.map +1 -1
  137. package/dist.esm/testing/index.d.ts +10 -10
  138. package/dist.esm/testing/index.js +10 -10
  139. package/dist.esm/testing/module.d.ts +16 -16
  140. package/dist.esm/testing/module.js +35 -35
  141. package/dist.esm/testing/module.js.map +1 -1
  142. package/dist.esm/testing/request.d.ts +56 -56
  143. package/dist.esm/testing/request.js +173 -173
  144. package/dist.esm/testing/request.js.map +1 -1
  145. package/dist.esm/testing/request.test.d.ts +8 -8
  146. package/dist.esm/testing/request.test.js +22 -22
  147. package/dist.esm/xhr.d.ts +42 -42
  148. package/dist.esm/xhr.js +294 -294
  149. package/dist.esm/xhr.js.map +1 -1
  150. package/dist.esm/xsrf.d.ts +37 -37
  151. package/dist.esm/xsrf.js +51 -51
  152. package/dist.esm/xsrf.js.map +1 -1
  153. package/package.json +9 -9
  154. package/tsconfig.esm.tsbuildinfo +1 -0
  155. package/tsconfig.json +0 -2
  156. package/tsconfig.tsbuildinfo +1 -8046
@@ -1,2109 +1,2109 @@
1
- /**
2
- * @license
3
- * Copyright Google Inc. All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Observable } from 'rxjs';
9
- import { HttpHandler } from './backend';
10
- import { HttpHeaders } from './headers';
11
- import { HttpParams } from './params';
12
- import { HttpRequest } from './request';
13
- import { HttpEvent, HttpResponse } from './response';
14
- export type HttpObserve = 'body' | 'events' | 'response';
15
- /**
16
- * Perform HTTP requests.
17
- *
18
- * `HttpClient` is available as an injectable class, with methods to perform HTTP requests.
19
- * Each request method has multiple signatures, and the return type varies according to which
20
- * signature is called (mainly the values of `observe` and `responseType`).
21
- *
22
- *
23
- */
24
- export declare class HttpClient {
25
- private handler;
26
- constructor(handler: HttpHandler);
27
- /**
28
- * Send the given `HttpRequest` and return a stream of `HttpEvents`.
29
- */
30
- request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
31
- /**
32
- * Construct a request which interprets the body as an `ArrayBuffer` and returns it.
33
- *
34
- * @return an `Observable` of the body as an `ArrayBuffer`.
35
- */
36
- request(method: string, url: string, options: {
37
- body?: any;
38
- headers?: HttpHeaders | {
39
- [header: string]: string | string[];
40
- };
41
- observe?: 'body';
42
- params?: HttpParams | {
43
- [param: string]: string | string[];
44
- };
45
- reportProgress?: boolean;
46
- responseType: 'arraybuffer';
47
- withCredentials?: boolean;
48
- }): Observable<ArrayBuffer>;
49
- /**
50
- * Construct a request which interprets the body as a `Blob` and returns it.
51
- *
52
- * @return an `Observable` of the body as a `Blob`.
53
- */
54
- request(method: string, url: string, options: {
55
- body?: any;
56
- headers?: HttpHeaders | {
57
- [header: string]: string | string[];
58
- };
59
- observe?: 'body';
60
- params?: HttpParams | {
61
- [param: string]: string | string[];
62
- };
63
- reportProgress?: boolean;
64
- responseType: 'blob';
65
- withCredentials?: boolean;
66
- }): Observable<Blob>;
67
- /**
68
- * Construct a request which interprets the body as text and returns it.
69
- *
70
- * @return an `Observable` of the body as a `string`.
71
- */
72
- request(method: string, url: string, options: {
73
- body?: any;
74
- headers?: HttpHeaders | {
75
- [header: string]: string | string[];
76
- };
77
- observe?: 'body';
78
- params?: HttpParams | {
79
- [param: string]: string | string[];
80
- };
81
- reportProgress?: boolean;
82
- responseType: 'text';
83
- withCredentials?: boolean;
84
- }): Observable<string>;
85
- /**
86
- * Construct a request which interprets the body as an `ArrayBuffer` and returns the full event stream.
87
- *
88
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
89
- */
90
- request(method: string, url: string, options: {
91
- body?: any;
92
- headers?: HttpHeaders | {
93
- [header: string]: string | string[];
94
- };
95
- params?: HttpParams | {
96
- [param: string]: string | string[];
97
- };
98
- observe: 'events';
99
- reportProgress?: boolean;
100
- responseType: 'arraybuffer';
101
- withCredentials?: boolean;
102
- }): Observable<HttpEvent<ArrayBuffer>>;
103
- /**
104
- * Construct a request which interprets the body as an `Blob` and returns the full event stream.
105
- *
106
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
107
- */
108
- request(method: string, url: string, options: {
109
- body?: any;
110
- headers?: HttpHeaders | {
111
- [header: string]: string | string[];
112
- };
113
- observe: 'events';
114
- params?: HttpParams | {
115
- [param: string]: string | string[];
116
- };
117
- reportProgress?: boolean;
118
- responseType: 'blob';
119
- withCredentials?: boolean;
120
- }): Observable<HttpEvent<Blob>>;
121
- /**
122
- * Construct a request which interprets the body as text and returns the full event stream.
123
- *
124
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
125
- */
126
- request(method: string, url: string, options: {
127
- body?: any;
128
- headers?: HttpHeaders | {
129
- [header: string]: string | string[];
130
- };
131
- observe: 'events';
132
- params?: HttpParams | {
133
- [param: string]: string | string[];
134
- };
135
- reportProgress?: boolean;
136
- responseType: 'text';
137
- withCredentials?: boolean;
138
- }): Observable<HttpEvent<string>>;
139
- /**
140
- * Construct a request which interprets the body as JSON and returns the full event stream.
141
- *
142
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
143
- */
144
- request(method: string, url: string, options: {
145
- body?: any;
146
- headers?: HttpHeaders | {
147
- [header: string]: string | string[];
148
- };
149
- reportProgress?: boolean;
150
- observe: 'events';
151
- params?: HttpParams | {
152
- [param: string]: string | string[];
153
- };
154
- responseType?: 'json';
155
- withCredentials?: boolean;
156
- }): Observable<HttpEvent<any>>;
157
- /**
158
- * Construct a request which interprets the body as JSON and returns the full event stream.
159
- *
160
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `R`.
161
- */
162
- request<R>(method: string, url: string, options: {
163
- body?: any;
164
- headers?: HttpHeaders | {
165
- [header: string]: string | string[];
166
- };
167
- reportProgress?: boolean;
168
- observe: 'events';
169
- params?: HttpParams | {
170
- [param: string]: string | string[];
171
- };
172
- responseType?: 'json';
173
- withCredentials?: boolean;
174
- }): Observable<HttpEvent<R>>;
175
- /**
176
- * Construct a request which interprets the body as an `ArrayBuffer` and returns the full response.
177
- *
178
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
179
- */
180
- request(method: string, url: string, options: {
181
- body?: any;
182
- headers?: HttpHeaders | {
183
- [header: string]: string | string[];
184
- };
185
- observe: 'response';
186
- params?: HttpParams | {
187
- [param: string]: string | string[];
188
- };
189
- reportProgress?: boolean;
190
- responseType: 'arraybuffer';
191
- withCredentials?: boolean;
192
- }): Observable<HttpResponse<ArrayBuffer>>;
193
- /**
194
- * Construct a request which interprets the body as a `Blob` and returns the full response.
195
- *
196
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
197
- */
198
- request(method: string, url: string, options: {
199
- body?: any;
200
- headers?: HttpHeaders | {
201
- [header: string]: string | string[];
202
- };
203
- observe: 'response';
204
- params?: HttpParams | {
205
- [param: string]: string | string[];
206
- };
207
- reportProgress?: boolean;
208
- responseType: 'blob';
209
- withCredentials?: boolean;
210
- }): Observable<HttpResponse<Blob>>;
211
- /**
212
- * Construct a request which interprets the body as text and returns the full response.
213
- *
214
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
215
- */
216
- request(method: string, url: string, options: {
217
- body?: any;
218
- headers?: HttpHeaders | {
219
- [header: string]: string | string[];
220
- };
221
- observe: 'response';
222
- params?: HttpParams | {
223
- [param: string]: string | string[];
224
- };
225
- reportProgress?: boolean;
226
- responseType: 'text';
227
- withCredentials?: boolean;
228
- }): Observable<HttpResponse<string>>;
229
- /**
230
- * Construct a request which interprets the body as JSON and returns the full response.
231
- *
232
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
233
- */
234
- request(method: string, url: string, options: {
235
- body?: any;
236
- headers?: HttpHeaders | {
237
- [header: string]: string | string[];
238
- };
239
- reportProgress?: boolean;
240
- observe: 'response';
241
- params?: HttpParams | {
242
- [param: string]: string | string[];
243
- };
244
- responseType?: 'json';
245
- withCredentials?: boolean;
246
- }): Observable<HttpResponse<Object>>;
247
- /**
248
- * Construct a request which interprets the body as JSON and returns the full response.
249
- *
250
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
251
- */
252
- request<R>(method: string, url: string, options: {
253
- body?: any;
254
- headers?: HttpHeaders | {
255
- [header: string]: string | string[];
256
- };
257
- reportProgress?: boolean;
258
- observe: 'response';
259
- params?: HttpParams | {
260
- [param: string]: string | string[];
261
- };
262
- responseType?: 'json';
263
- withCredentials?: boolean;
264
- }): Observable<HttpResponse<R>>;
265
- /**
266
- * Construct a request which interprets the body as JSON and returns it.
267
- *
268
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
269
- */
270
- request(method: string, url: string, options?: {
271
- body?: any;
272
- headers?: HttpHeaders | {
273
- [header: string]: string | string[];
274
- };
275
- observe?: 'body';
276
- params?: HttpParams | {
277
- [param: string]: string | string[];
278
- };
279
- responseType?: 'json';
280
- reportProgress?: boolean;
281
- withCredentials?: boolean;
282
- }): Observable<Object>;
283
- /**
284
- * Construct a request which interprets the body as JSON and returns it.
285
- *
286
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
287
- */
288
- request<R>(method: string, url: string, options?: {
289
- body?: any;
290
- headers?: HttpHeaders | {
291
- [header: string]: string | string[];
292
- };
293
- observe?: 'body';
294
- params?: HttpParams | {
295
- [param: string]: string | string[];
296
- };
297
- responseType?: 'json';
298
- reportProgress?: boolean;
299
- withCredentials?: boolean;
300
- }): Observable<R>;
301
- /**
302
- * Construct a request in a manner where response type and requested `Observable` are not known
303
- * statically.
304
- *
305
- * @return an `Observable` of whatever was requested, typed to `any`.
306
- */
307
- request(method: string, url: string, options?: {
308
- body?: any;
309
- headers?: HttpHeaders | {
310
- [header: string]: string | string[];
311
- };
312
- params?: HttpParams | {
313
- [param: string]: string | string[];
314
- };
315
- observe?: HttpObserve;
316
- reportProgress?: boolean;
317
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
318
- withCredentials?: boolean;
319
- }): Observable<any>;
320
- /**
321
- * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns it.
322
- *
323
- * @return an `Observable` of the body as an `ArrayBuffer`.
324
- */
325
- delete(url: string, options: {
326
- headers?: HttpHeaders | {
327
- [header: string]: string | string[];
328
- };
329
- observe?: 'body';
330
- params?: HttpParams | {
331
- [param: string]: string | string[];
332
- };
333
- reportProgress?: boolean;
334
- responseType: 'arraybuffer';
335
- withCredentials?: boolean;
336
- }): Observable<ArrayBuffer>;
337
- /**
338
- * Construct a DELETE request which interprets the body as a `Blob` and returns it.
339
- *
340
- * @return an `Observable` of the body as a `Blob`.
341
- */
342
- delete(url: string, options: {
343
- headers?: HttpHeaders | {
344
- [header: string]: string | string[];
345
- };
346
- observe?: 'body';
347
- params?: HttpParams | {
348
- [param: string]: string | string[];
349
- };
350
- reportProgress?: boolean;
351
- responseType: 'blob';
352
- withCredentials?: boolean;
353
- }): Observable<Blob>;
354
- /**
355
- * Construct a DELETE request which interprets the body as text and returns it.
356
- *
357
- * @return an `Observable` of the body as a `string`.
358
- */
359
- delete(url: string, options: {
360
- headers?: HttpHeaders | {
361
- [header: string]: string | string[];
362
- };
363
- observe?: 'body';
364
- params?: HttpParams | {
365
- [param: string]: string | string[];
366
- };
367
- reportProgress?: boolean;
368
- responseType: 'text';
369
- withCredentials?: boolean;
370
- }): Observable<string>;
371
- /**
372
- * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full event stream.
373
- *
374
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
375
- */
376
- delete(url: string, options: {
377
- headers?: HttpHeaders | {
378
- [header: string]: string | string[];
379
- };
380
- observe: 'events';
381
- params?: HttpParams | {
382
- [param: string]: string | string[];
383
- };
384
- reportProgress?: boolean;
385
- responseType: 'arraybuffer';
386
- withCredentials?: boolean;
387
- }): Observable<HttpEvent<ArrayBuffer>>;
388
- /**
389
- * Construct a DELETE request which interprets the body as a `Blob` and returns the full event stream.
390
- *
391
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
392
- */
393
- delete(url: string, options: {
394
- headers?: HttpHeaders | {
395
- [header: string]: string | string[];
396
- };
397
- observe: 'events';
398
- params?: HttpParams | {
399
- [param: string]: string | string[];
400
- };
401
- reportProgress?: boolean;
402
- responseType: 'blob';
403
- withCredentials?: boolean;
404
- }): Observable<HttpEvent<Blob>>;
405
- /**
406
- * Construct a DELETE request which interprets the body as text and returns the full event stream.
407
- *
408
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
409
- */
410
- delete(url: string, options: {
411
- headers?: HttpHeaders | {
412
- [header: string]: string | string[];
413
- };
414
- observe: 'events';
415
- params?: HttpParams | {
416
- [param: string]: string | string[];
417
- };
418
- reportProgress?: boolean;
419
- responseType: 'text';
420
- withCredentials?: boolean;
421
- }): Observable<HttpEvent<string>>;
422
- /**
423
- * Construct a DELETE request which interprets the body as JSON and returns the full event stream.
424
- *
425
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
426
- */
427
- delete(url: string, options: {
428
- headers?: HttpHeaders | {
429
- [header: string]: string | string[];
430
- };
431
- observe: 'events';
432
- params?: HttpParams | {
433
- [param: string]: string | string[];
434
- };
435
- reportProgress?: boolean;
436
- responseType?: 'json';
437
- withCredentials?: boolean;
438
- }): Observable<HttpEvent<Object>>;
439
- /**
440
- * Construct a DELETE request which interprets the body as JSON and returns the full event stream.
441
- *
442
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
443
- */
444
- delete<T>(url: string, options: {
445
- headers?: HttpHeaders | {
446
- [header: string]: string | string[];
447
- };
448
- observe: 'events';
449
- params?: HttpParams | {
450
- [param: string]: string | string[];
451
- };
452
- reportProgress?: boolean;
453
- responseType?: 'json';
454
- withCredentials?: boolean;
455
- }): Observable<HttpEvent<T>>;
456
- /**
457
- * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full response.
458
- *
459
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
460
- */
461
- delete(url: string, options: {
462
- headers?: HttpHeaders | {
463
- [header: string]: string | string[];
464
- };
465
- observe: 'response';
466
- params?: HttpParams | {
467
- [param: string]: string | string[];
468
- };
469
- reportProgress?: boolean;
470
- responseType: 'arraybuffer';
471
- withCredentials?: boolean;
472
- }): Observable<HttpResponse<ArrayBuffer>>;
473
- /**
474
- * Construct a DELETE request which interprets the body as a `Blob` and returns the full response.
475
- *
476
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
477
- */
478
- delete(url: string, options: {
479
- headers?: HttpHeaders | {
480
- [header: string]: string | string[];
481
- };
482
- observe: 'response';
483
- params?: HttpParams | {
484
- [param: string]: string | string[];
485
- };
486
- reportProgress?: boolean;
487
- responseType: 'blob';
488
- withCredentials?: boolean;
489
- }): Observable<HttpResponse<Blob>>;
490
- /**
491
- * Construct a DELETE request which interprets the body as text and returns the full response.
492
- *
493
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
494
- */
495
- delete(url: string, options: {
496
- headers?: HttpHeaders | {
497
- [header: string]: string | string[];
498
- };
499
- observe: 'response';
500
- params?: HttpParams | {
501
- [param: string]: string | string[];
502
- };
503
- reportProgress?: boolean;
504
- responseType: 'text';
505
- withCredentials?: boolean;
506
- }): Observable<HttpResponse<string>>;
507
- /**
508
- * Construct a DELETE request which interprets the body as JSON and returns the full response.
509
- *
510
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
511
- */
512
- delete(url: string, options: {
513
- headers?: HttpHeaders | {
514
- [header: string]: string | string[];
515
- };
516
- observe: 'response';
517
- params?: HttpParams | {
518
- [param: string]: string | string[];
519
- };
520
- reportProgress?: boolean;
521
- responseType?: 'json';
522
- withCredentials?: boolean;
523
- }): Observable<HttpResponse<Object>>;
524
- /**
525
- * Construct a DELETE request which interprets the body as JSON and returns the full response.
526
- *
527
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
528
- */
529
- delete<T>(url: string, options: {
530
- headers?: HttpHeaders | {
531
- [header: string]: string | string[];
532
- };
533
- observe: 'response';
534
- params?: HttpParams | {
535
- [param: string]: string | string[];
536
- };
537
- reportProgress?: boolean;
538
- responseType?: 'json';
539
- withCredentials?: boolean;
540
- }): Observable<HttpResponse<T>>;
541
- /**
542
- * Construct a DELETE request which interprets the body as JSON and returns it.
543
- *
544
- * @return an `Observable` of the body as an `Object`.
545
- */
546
- delete(url: string, options?: {
547
- headers?: HttpHeaders | {
548
- [header: string]: string | string[];
549
- };
550
- observe?: 'body';
551
- params?: HttpParams | {
552
- [param: string]: string | string[];
553
- };
554
- reportProgress?: boolean;
555
- responseType?: 'json';
556
- withCredentials?: boolean;
557
- }): Observable<Object>;
558
- /**
559
- * Construct a DELETE request which interprets the body as JSON and returns it.
560
- *
561
- * @return an `Observable` of the body as type `T`.
562
- */
563
- delete<T>(url: string, options?: {
564
- headers?: HttpHeaders | {
565
- [header: string]: string | string[];
566
- };
567
- observe?: 'body';
568
- params?: HttpParams | {
569
- [param: string]: string | string[];
570
- };
571
- reportProgress?: boolean;
572
- responseType?: 'json';
573
- withCredentials?: boolean;
574
- }): Observable<T>;
575
- /**
576
- * Construct a GET request which interprets the body as an `ArrayBuffer` and returns it.
577
- *
578
- * @return an `Observable` of the body as an `ArrayBuffer`.
579
- */
580
- get(url: string, options: {
581
- headers?: HttpHeaders | {
582
- [header: string]: string | string[];
583
- };
584
- observe?: 'body';
585
- params?: HttpParams | {
586
- [param: string]: string | string[];
587
- };
588
- reportProgress?: boolean;
589
- responseType: 'arraybuffer';
590
- withCredentials?: boolean;
591
- }): Observable<ArrayBuffer>;
592
- /**
593
- * Construct a GET request which interprets the body as a `Blob` and returns it.
594
- *
595
- * @return an `Observable` of the body as a `Blob`.
596
- */
597
- get(url: string, options: {
598
- headers?: HttpHeaders | {
599
- [header: string]: string | string[];
600
- };
601
- observe?: 'body';
602
- params?: HttpParams | {
603
- [param: string]: string | string[];
604
- };
605
- reportProgress?: boolean;
606
- responseType: 'blob';
607
- withCredentials?: boolean;
608
- }): Observable<Blob>;
609
- /**
610
- * Construct a GET request which interprets the body as text and returns it.
611
- *
612
- * @return an `Observable` of the body as a `string`.
613
- */
614
- get(url: string, options: {
615
- headers?: HttpHeaders | {
616
- [header: string]: string | string[];
617
- };
618
- observe?: 'body';
619
- params?: HttpParams | {
620
- [param: string]: string | string[];
621
- };
622
- reportProgress?: boolean;
623
- responseType: 'text';
624
- withCredentials?: boolean;
625
- }): Observable<string>;
626
- /**
627
- * Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full event stream.
628
- *
629
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
630
- */
631
- get(url: string, options: {
632
- headers?: HttpHeaders | {
633
- [header: string]: string | string[];
634
- };
635
- observe: 'events';
636
- params?: HttpParams | {
637
- [param: string]: string | string[];
638
- };
639
- reportProgress?: boolean;
640
- responseType: 'arraybuffer';
641
- withCredentials?: boolean;
642
- }): Observable<HttpEvent<ArrayBuffer>>;
643
- /**
644
- * Construct a GET request which interprets the body as a `Blob` and returns the full event stream.
645
- *
646
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
647
- */
648
- get(url: string, options: {
649
- headers?: HttpHeaders | {
650
- [header: string]: string | string[];
651
- };
652
- observe: 'events';
653
- params?: HttpParams | {
654
- [param: string]: string | string[];
655
- };
656
- reportProgress?: boolean;
657
- responseType: 'blob';
658
- withCredentials?: boolean;
659
- }): Observable<HttpEvent<Blob>>;
660
- /**
661
- * Construct a GET request which interprets the body as text and returns the full event stream.
662
- *
663
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
664
- */
665
- get(url: string, options: {
666
- headers?: HttpHeaders | {
667
- [header: string]: string | string[];
668
- };
669
- observe: 'events';
670
- params?: HttpParams | {
671
- [param: string]: string | string[];
672
- };
673
- reportProgress?: boolean;
674
- responseType: 'text';
675
- withCredentials?: boolean;
676
- }): Observable<HttpEvent<string>>;
677
- /**
678
- * Construct a GET request which interprets the body as JSON and returns the full event stream.
679
- *
680
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
681
- */
682
- get(url: string, options: {
683
- headers?: HttpHeaders | {
684
- [header: string]: string | string[];
685
- };
686
- observe: 'events';
687
- params?: HttpParams | {
688
- [param: string]: string | string[];
689
- };
690
- reportProgress?: boolean;
691
- responseType?: 'json';
692
- withCredentials?: boolean;
693
- }): Observable<HttpEvent<Object>>;
694
- /**
695
- * Construct a GET request which interprets the body as JSON and returns the full event stream.
696
- *
697
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
698
- */
699
- get<T>(url: string, options: {
700
- headers?: HttpHeaders | {
701
- [header: string]: string | string[];
702
- };
703
- observe: 'events';
704
- params?: HttpParams | {
705
- [param: string]: string | string[];
706
- };
707
- reportProgress?: boolean;
708
- responseType?: 'json';
709
- withCredentials?: boolean;
710
- }): Observable<HttpEvent<T>>;
711
- /**
712
- * Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full response.
713
- *
714
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
715
- */
716
- get(url: string, options: {
717
- headers?: HttpHeaders | {
718
- [header: string]: string | string[];
719
- };
720
- observe: 'response';
721
- params?: HttpParams | {
722
- [param: string]: string | string[];
723
- };
724
- reportProgress?: boolean;
725
- responseType: 'arraybuffer';
726
- withCredentials?: boolean;
727
- }): Observable<HttpResponse<ArrayBuffer>>;
728
- /**
729
- * Construct a GET request which interprets the body as a `Blob` and returns the full response.
730
- *
731
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
732
- */
733
- get(url: string, options: {
734
- headers?: HttpHeaders | {
735
- [header: string]: string | string[];
736
- };
737
- observe: 'response';
738
- params?: HttpParams | {
739
- [param: string]: string | string[];
740
- };
741
- reportProgress?: boolean;
742
- responseType: 'blob';
743
- withCredentials?: boolean;
744
- }): Observable<HttpResponse<Blob>>;
745
- /**
746
- * Construct a GET request which interprets the body as text and returns the full response.
747
- *
748
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
749
- */
750
- get(url: string, options: {
751
- headers?: HttpHeaders | {
752
- [header: string]: string | string[];
753
- };
754
- observe: 'response';
755
- params?: HttpParams | {
756
- [param: string]: string | string[];
757
- };
758
- reportProgress?: boolean;
759
- responseType: 'text';
760
- withCredentials?: boolean;
761
- }): Observable<HttpResponse<string>>;
762
- /**
763
- * Construct a GET request which interprets the body as JSON and returns the full response.
764
- *
765
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
766
- */
767
- get(url: string, options: {
768
- headers?: HttpHeaders | {
769
- [header: string]: string | string[];
770
- };
771
- observe: 'response';
772
- params?: HttpParams | {
773
- [param: string]: string | string[];
774
- };
775
- reportProgress?: boolean;
776
- responseType?: 'json';
777
- withCredentials?: boolean;
778
- }): Observable<HttpResponse<Object>>;
779
- /**
780
- * Construct a GET request which interprets the body as JSON and returns the full response.
781
- *
782
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
783
- */
784
- get<T>(url: string, options: {
785
- headers?: HttpHeaders | {
786
- [header: string]: string | string[];
787
- };
788
- observe: 'response';
789
- params?: HttpParams | {
790
- [param: string]: string | string[];
791
- };
792
- reportProgress?: boolean;
793
- responseType?: 'json';
794
- withCredentials?: boolean;
795
- }): Observable<HttpResponse<T>>;
796
- /**
797
- * Construct a GET request which interprets the body as JSON and returns it.
798
- *
799
- * @return an `Observable` of the body as an `Object`.
800
- */
801
- get(url: string, options?: {
802
- headers?: HttpHeaders | {
803
- [header: string]: string | string[];
804
- };
805
- observe?: 'body';
806
- params?: HttpParams | {
807
- [param: string]: string | string[];
808
- };
809
- reportProgress?: boolean;
810
- responseType?: 'json';
811
- withCredentials?: boolean;
812
- }): Observable<Object>;
813
- /**
814
- * Construct a GET request which interprets the body as JSON and returns it.
815
- *
816
- * @return an `Observable` of the body as type `T`.
817
- */
818
- get<T>(url: string, options?: {
819
- headers?: HttpHeaders | {
820
- [header: string]: string | string[];
821
- };
822
- observe?: 'body';
823
- params?: HttpParams | {
824
- [param: string]: string | string[];
825
- };
826
- reportProgress?: boolean;
827
- responseType?: 'json';
828
- withCredentials?: boolean;
829
- }): Observable<T>;
830
- /**
831
- * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns it.
832
- *
833
- * @return an `Observable` of the body as an `ArrayBuffer`.
834
- */
835
- head(url: string, options: {
836
- headers?: HttpHeaders | {
837
- [header: string]: string | string[];
838
- };
839
- observe?: 'body';
840
- params?: HttpParams | {
841
- [param: string]: string | string[];
842
- };
843
- reportProgress?: boolean;
844
- responseType: 'arraybuffer';
845
- withCredentials?: boolean;
846
- }): Observable<ArrayBuffer>;
847
- head(url: string, options: {
848
- headers?: HttpHeaders | {
849
- [header: string]: string | string[];
850
- };
851
- observe?: 'body';
852
- params?: HttpParams | {
853
- [param: string]: string | string[];
854
- };
855
- reportProgress?: boolean;
856
- responseType: 'blob';
857
- withCredentials?: boolean;
858
- }): Observable<Blob>;
859
- /**
860
- * Construct a HEAD request which interprets the body as text and returns it.
861
- *
862
- * @return an `Observable` of the body as a `string`.
863
- */
864
- head(url: string, options: {
865
- headers?: HttpHeaders | {
866
- [header: string]: string | string[];
867
- };
868
- observe?: 'body';
869
- params?: HttpParams | {
870
- [param: string]: string | string[];
871
- };
872
- reportProgress?: boolean;
873
- responseType: 'text';
874
- withCredentials?: boolean;
875
- }): Observable<string>;
876
- /**
877
- * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full event stream.
878
- *
879
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
880
- */
881
- head(url: string, options: {
882
- headers?: HttpHeaders | {
883
- [header: string]: string | string[];
884
- };
885
- observe: 'events';
886
- params?: HttpParams | {
887
- [param: string]: string | string[];
888
- };
889
- reportProgress?: boolean;
890
- responseType: 'arraybuffer';
891
- withCredentials?: boolean;
892
- }): Observable<HttpEvent<ArrayBuffer>>;
893
- /**
894
- * Construct a HEAD request which interprets the body as a `Blob` and returns the full event stream.
895
- *
896
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
897
- */
898
- head(url: string, options: {
899
- headers?: HttpHeaders | {
900
- [header: string]: string | string[];
901
- };
902
- observe: 'events';
903
- params?: HttpParams | {
904
- [param: string]: string | string[];
905
- };
906
- reportProgress?: boolean;
907
- responseType: 'blob';
908
- withCredentials?: boolean;
909
- }): Observable<HttpEvent<Blob>>;
910
- /**
911
- * Construct a HEAD request which interprets the body as text and returns the full event stream.
912
- *
913
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
914
- */
915
- head(url: string, options: {
916
- headers?: HttpHeaders | {
917
- [header: string]: string | string[];
918
- };
919
- observe: 'events';
920
- params?: HttpParams | {
921
- [param: string]: string | string[];
922
- };
923
- reportProgress?: boolean;
924
- responseType: 'text';
925
- withCredentials?: boolean;
926
- }): Observable<HttpEvent<string>>;
927
- /**
928
- * Construct a HEAD request which interprets the body as JSON and returns the full event stream.
929
- *
930
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
931
- */
932
- head(url: string, options: {
933
- headers?: HttpHeaders | {
934
- [header: string]: string | string[];
935
- };
936
- observe: 'events';
937
- params?: HttpParams | {
938
- [param: string]: string | string[];
939
- };
940
- reportProgress?: boolean;
941
- responseType?: 'json';
942
- withCredentials?: boolean;
943
- }): Observable<HttpEvent<Object>>;
944
- /**
945
- * Construct a HEAD request which interprets the body as JSON and returns the full event stream.
946
- *
947
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
948
- */
949
- head<T>(url: string, options: {
950
- headers?: HttpHeaders | {
951
- [header: string]: string | string[];
952
- };
953
- observe: 'events';
954
- params?: HttpParams | {
955
- [param: string]: string | string[];
956
- };
957
- reportProgress?: boolean;
958
- responseType?: 'json';
959
- withCredentials?: boolean;
960
- }): Observable<HttpEvent<T>>;
961
- /**
962
- * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full response.
963
- *
964
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
965
- */
966
- head(url: string, options: {
967
- headers?: HttpHeaders | {
968
- [header: string]: string | string[];
969
- };
970
- observe: 'response';
971
- params?: HttpParams | {
972
- [param: string]: string | string[];
973
- };
974
- reportProgress?: boolean;
975
- responseType: 'arraybuffer';
976
- withCredentials?: boolean;
977
- }): Observable<HttpResponse<ArrayBuffer>>;
978
- /**
979
- * Construct a HEAD request which interprets the body as a `Blob` and returns the full response.
980
- *
981
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
982
- */
983
- head(url: string, options: {
984
- headers?: HttpHeaders | {
985
- [header: string]: string | string[];
986
- };
987
- observe: 'response';
988
- params?: HttpParams | {
989
- [param: string]: string | string[];
990
- };
991
- reportProgress?: boolean;
992
- responseType: 'blob';
993
- withCredentials?: boolean;
994
- }): Observable<HttpResponse<Blob>>;
995
- /**
996
- * Construct a HEAD request which interprets the body as text and returns the full response.
997
- *
998
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
999
- */
1000
- head(url: string, options: {
1001
- headers?: HttpHeaders | {
1002
- [header: string]: string | string[];
1003
- };
1004
- observe: 'response';
1005
- params?: HttpParams | {
1006
- [param: string]: string | string[];
1007
- };
1008
- reportProgress?: boolean;
1009
- responseType: 'text';
1010
- withCredentials?: boolean;
1011
- }): Observable<HttpResponse<string>>;
1012
- /**
1013
- * Construct a HEAD request which interprets the body as JSON and returns the full response.
1014
- *
1015
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1016
- */
1017
- head(url: string, options: {
1018
- headers?: HttpHeaders | {
1019
- [header: string]: string | string[];
1020
- };
1021
- observe: 'response';
1022
- params?: HttpParams | {
1023
- [param: string]: string | string[];
1024
- };
1025
- reportProgress?: boolean;
1026
- responseType?: 'json';
1027
- withCredentials?: boolean;
1028
- }): Observable<HttpResponse<Object>>;
1029
- /**
1030
- * Construct a HEAD request which interprets the body as JSON and returns the full response.
1031
- *
1032
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1033
- */
1034
- head<T>(url: string, options: {
1035
- headers?: HttpHeaders | {
1036
- [header: string]: string | string[];
1037
- };
1038
- observe: 'response';
1039
- params?: HttpParams | {
1040
- [param: string]: string | string[];
1041
- };
1042
- reportProgress?: boolean;
1043
- responseType?: 'json';
1044
- withCredentials?: boolean;
1045
- }): Observable<HttpResponse<T>>;
1046
- /**
1047
- * Construct a HEAD request which interprets the body as JSON and returns it.
1048
- *
1049
- * @return an `Observable` of the body as an `Object`.
1050
- */
1051
- head(url: string, options?: {
1052
- headers?: HttpHeaders | {
1053
- [header: string]: string | string[];
1054
- };
1055
- observe?: 'body';
1056
- params?: HttpParams | {
1057
- [param: string]: string | string[];
1058
- };
1059
- reportProgress?: boolean;
1060
- responseType?: 'json';
1061
- withCredentials?: boolean;
1062
- }): Observable<Object>;
1063
- /**
1064
- * Construct a HEAD request which interprets the body as JSON and returns it.
1065
- *
1066
- * @return an `Observable` of the body as type `T`.
1067
- */
1068
- head<T>(url: string, options?: {
1069
- headers?: HttpHeaders | {
1070
- [header: string]: string | string[];
1071
- };
1072
- observe?: 'body';
1073
- params?: HttpParams | {
1074
- [param: string]: string | string[];
1075
- };
1076
- reportProgress?: boolean;
1077
- responseType?: 'json';
1078
- withCredentials?: boolean;
1079
- }): Observable<T>;
1080
- /**
1081
- * Construct a JSONP request for the given URL and name of the callback parameter.
1082
- *
1083
- * @return an `Observable` of the response object as an `Object`
1084
- */
1085
- jsonp(url: string, callbackParam: string): Observable<Object>;
1086
- /**
1087
- * Construct a JSONP request for the given URL and name of the callback parameter.
1088
- *
1089
- * @return an `Observable` of the response object as type `T`.
1090
- */
1091
- jsonp<T>(url: string, callbackParam: string): Observable<T>;
1092
- /**
1093
- * Make an OPTIONS request which interprets the body as an `ArrayBuffer` and returns it.
1094
- *
1095
- * @return an `Observable` of the body as an `ArrayBuffer`.
1096
- */
1097
- options(url: string, options: {
1098
- headers?: HttpHeaders | {
1099
- [header: string]: string | string[];
1100
- };
1101
- observe?: 'body';
1102
- params?: HttpParams | {
1103
- [param: string]: string | string[];
1104
- };
1105
- reportProgress?: boolean;
1106
- responseType: 'arraybuffer';
1107
- withCredentials?: boolean;
1108
- }): Observable<ArrayBuffer>;
1109
- /**
1110
- * Construct an OPTIONS request which interprets the body as a `Blob` and returns it.
1111
- *
1112
- * @return an `Observable` of the body as a `Blob`.
1113
- */
1114
- options(url: string, options: {
1115
- headers?: HttpHeaders | {
1116
- [header: string]: string | string[];
1117
- };
1118
- observe?: 'body';
1119
- params?: HttpParams | {
1120
- [param: string]: string | string[];
1121
- };
1122
- reportProgress?: boolean;
1123
- responseType: 'blob';
1124
- withCredentials?: boolean;
1125
- }): Observable<Blob>;
1126
- /**
1127
- * Construct an OPTIONS request which interprets the body as text and returns it.
1128
- *
1129
- * @return an `Observable` of the body as a `string`.
1130
- */
1131
- options(url: string, options: {
1132
- headers?: HttpHeaders | {
1133
- [header: string]: string | string[];
1134
- };
1135
- observe?: 'body';
1136
- params?: HttpParams | {
1137
- [param: string]: string | string[];
1138
- };
1139
- reportProgress?: boolean;
1140
- responseType: 'text';
1141
- withCredentials?: boolean;
1142
- }): Observable<string>;
1143
- /**
1144
- * Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1145
- *
1146
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1147
- */
1148
- options(url: string, options: {
1149
- headers?: HttpHeaders | {
1150
- [header: string]: string | string[];
1151
- };
1152
- observe: 'events';
1153
- params?: HttpParams | {
1154
- [param: string]: string | string[];
1155
- };
1156
- reportProgress?: boolean;
1157
- responseType: 'arraybuffer';
1158
- withCredentials?: boolean;
1159
- }): Observable<HttpEvent<ArrayBuffer>>;
1160
- /**
1161
- * Construct an OPTIONS request which interprets the body as a `Blob` and returns the full event stream.
1162
- *
1163
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1164
- */
1165
- options(url: string, options: {
1166
- headers?: HttpHeaders | {
1167
- [header: string]: string | string[];
1168
- };
1169
- observe: 'events';
1170
- params?: HttpParams | {
1171
- [param: string]: string | string[];
1172
- };
1173
- reportProgress?: boolean;
1174
- responseType: 'blob';
1175
- withCredentials?: boolean;
1176
- }): Observable<HttpEvent<Blob>>;
1177
- /**
1178
- * Construct an OPTIONS request which interprets the body as text and returns the full event stream.
1179
- *
1180
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1181
- */
1182
- options(url: string, options: {
1183
- headers?: HttpHeaders | {
1184
- [header: string]: string | string[];
1185
- };
1186
- observe: 'events';
1187
- params?: HttpParams | {
1188
- [param: string]: string | string[];
1189
- };
1190
- reportProgress?: boolean;
1191
- responseType: 'text';
1192
- withCredentials?: boolean;
1193
- }): Observable<HttpEvent<string>>;
1194
- /**
1195
- * Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
1196
- *
1197
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1198
- */
1199
- options(url: string, options: {
1200
- headers?: HttpHeaders | {
1201
- [header: string]: string | string[];
1202
- };
1203
- observe: 'events';
1204
- params?: HttpParams | {
1205
- [param: string]: string | string[];
1206
- };
1207
- reportProgress?: boolean;
1208
- responseType?: 'json';
1209
- withCredentials?: boolean;
1210
- }): Observable<HttpEvent<Object>>;
1211
- /**
1212
- * Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
1213
- *
1214
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1215
- */
1216
- options<T>(url: string, options: {
1217
- headers?: HttpHeaders | {
1218
- [header: string]: string | string[];
1219
- };
1220
- observe: 'events';
1221
- params?: HttpParams | {
1222
- [param: string]: string | string[];
1223
- };
1224
- reportProgress?: boolean;
1225
- responseType?: 'json';
1226
- withCredentials?: boolean;
1227
- }): Observable<HttpEvent<T>>;
1228
- /**
1229
- * Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full response.
1230
- *
1231
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1232
- */
1233
- options(url: string, options: {
1234
- headers?: HttpHeaders | {
1235
- [header: string]: string | string[];
1236
- };
1237
- observe: 'response';
1238
- params?: HttpParams | {
1239
- [param: string]: string | string[];
1240
- };
1241
- reportProgress?: boolean;
1242
- responseType: 'arraybuffer';
1243
- withCredentials?: boolean;
1244
- }): Observable<HttpResponse<ArrayBuffer>>;
1245
- /**
1246
- * Construct an OPTIONS request which interprets the body as a `Blob` and returns the full response.
1247
- *
1248
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1249
- */
1250
- options(url: string, options: {
1251
- headers?: HttpHeaders | {
1252
- [header: string]: string | string[];
1253
- };
1254
- observe: 'response';
1255
- params?: HttpParams | {
1256
- [param: string]: string | string[];
1257
- };
1258
- reportProgress?: boolean;
1259
- responseType: 'blob';
1260
- withCredentials?: boolean;
1261
- }): Observable<HttpResponse<Blob>>;
1262
- /**
1263
- * Construct an OPTIONS request which interprets the body as text and returns the full response.
1264
- *
1265
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1266
- */
1267
- options(url: string, options: {
1268
- headers?: HttpHeaders | {
1269
- [header: string]: string | string[];
1270
- };
1271
- observe: 'response';
1272
- params?: HttpParams | {
1273
- [param: string]: string | string[];
1274
- };
1275
- reportProgress?: boolean;
1276
- responseType: 'text';
1277
- withCredentials?: boolean;
1278
- }): Observable<HttpResponse<string>>;
1279
- /**
1280
- * Construct an OPTIONS request which interprets the body as JSON and returns the full response.
1281
- *
1282
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1283
- */
1284
- options(url: string, options: {
1285
- headers?: HttpHeaders | {
1286
- [header: string]: string | string[];
1287
- };
1288
- observe: 'response';
1289
- params?: HttpParams | {
1290
- [param: string]: string | string[];
1291
- };
1292
- reportProgress?: boolean;
1293
- responseType?: 'json';
1294
- withCredentials?: boolean;
1295
- }): Observable<HttpResponse<Object>>;
1296
- /**
1297
- * Construct an OPTIONS request which interprets the body as JSON and returns the full response.
1298
- *
1299
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1300
- */
1301
- options<T>(url: string, options: {
1302
- headers?: HttpHeaders | {
1303
- [header: string]: string | string[];
1304
- };
1305
- observe: 'response';
1306
- params?: HttpParams | {
1307
- [param: string]: string | string[];
1308
- };
1309
- reportProgress?: boolean;
1310
- responseType?: 'json';
1311
- withCredentials?: boolean;
1312
- }): Observable<HttpResponse<T>>;
1313
- /**
1314
- * Construct an OPTIONS request which interprets the body as JSON and returns it.
1315
- *
1316
- * @return an `Observable` of the body as an `Object`.
1317
- */
1318
- options(url: string, options?: {
1319
- headers?: HttpHeaders | {
1320
- [header: string]: string | string[];
1321
- };
1322
- observe?: 'body';
1323
- params?: HttpParams | {
1324
- [param: string]: string | string[];
1325
- };
1326
- reportProgress?: boolean;
1327
- responseType?: 'json';
1328
- withCredentials?: boolean;
1329
- }): Observable<Object>;
1330
- /**
1331
- * Construct an OPTIONS request which interprets the body as JSON and returns it.
1332
- *
1333
- * @return an `Observable` of the body as type `T`.
1334
- */
1335
- options<T>(url: string, options?: {
1336
- headers?: HttpHeaders | {
1337
- [header: string]: string | string[];
1338
- };
1339
- observe?: 'body';
1340
- params?: HttpParams | {
1341
- [param: string]: string | string[];
1342
- };
1343
- reportProgress?: boolean;
1344
- responseType?: 'json';
1345
- withCredentials?: boolean;
1346
- }): Observable<T>;
1347
- /**
1348
- * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns it.
1349
- *
1350
- * @return an `Observable` of the body as an `ArrayBuffer`.
1351
- */
1352
- patch(url: string, body: any | null, options: {
1353
- headers?: HttpHeaders | {
1354
- [header: string]: string | string[];
1355
- };
1356
- observe?: 'body';
1357
- params?: HttpParams | {
1358
- [param: string]: string | string[];
1359
- };
1360
- reportProgress?: boolean;
1361
- responseType: 'arraybuffer';
1362
- withCredentials?: boolean;
1363
- }): Observable<ArrayBuffer>;
1364
- /**
1365
- * Construct a PATCH request which interprets the body as a `Blob` and returns it.
1366
- *
1367
- * @return an `Observable` of the body as a `Blob`.
1368
- */
1369
- patch(url: string, body: any | null, options: {
1370
- headers?: HttpHeaders | {
1371
- [header: string]: string | string[];
1372
- };
1373
- observe?: 'body';
1374
- params?: HttpParams | {
1375
- [param: string]: string | string[];
1376
- };
1377
- reportProgress?: boolean;
1378
- responseType: 'blob';
1379
- withCredentials?: boolean;
1380
- }): Observable<Blob>;
1381
- /**
1382
- * Construct a PATCH request which interprets the body as text and returns it.
1383
- *
1384
- * @return an `Observable` of the body as a `string`.
1385
- */
1386
- patch(url: string, body: any | null, options: {
1387
- headers?: HttpHeaders | {
1388
- [header: string]: string | string[];
1389
- };
1390
- observe?: 'body';
1391
- params?: HttpParams | {
1392
- [param: string]: string | string[];
1393
- };
1394
- reportProgress?: boolean;
1395
- responseType: 'text';
1396
- withCredentials?: boolean;
1397
- }): Observable<string>;
1398
- /**
1399
- * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1400
- *
1401
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1402
- */
1403
- patch(url: string, body: any | null, options: {
1404
- headers?: HttpHeaders | {
1405
- [header: string]: string | string[];
1406
- };
1407
- observe: 'events';
1408
- params?: HttpParams | {
1409
- [param: string]: string | string[];
1410
- };
1411
- reportProgress?: boolean;
1412
- responseType: 'arraybuffer';
1413
- withCredentials?: boolean;
1414
- }): Observable<HttpEvent<ArrayBuffer>>;
1415
- /**
1416
- * Construct a PATCH request which interprets the body as a `Blob` and returns the full event stream.
1417
- *
1418
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1419
- */
1420
- patch(url: string, body: any | null, options: {
1421
- headers?: HttpHeaders | {
1422
- [header: string]: string | string[];
1423
- };
1424
- observe: 'events';
1425
- params?: HttpParams | {
1426
- [param: string]: string | string[];
1427
- };
1428
- reportProgress?: boolean;
1429
- responseType: 'blob';
1430
- withCredentials?: boolean;
1431
- }): Observable<HttpEvent<Blob>>;
1432
- /**
1433
- * Construct a PATCH request which interprets the body as text and returns the full event stream.
1434
- *
1435
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1436
- */
1437
- patch(url: string, body: any | null, options: {
1438
- headers?: HttpHeaders | {
1439
- [header: string]: string | string[];
1440
- };
1441
- observe: 'events';
1442
- params?: HttpParams | {
1443
- [param: string]: string | string[];
1444
- };
1445
- reportProgress?: boolean;
1446
- responseType: 'text';
1447
- withCredentials?: boolean;
1448
- }): Observable<HttpEvent<string>>;
1449
- /**
1450
- * Construct a PATCH request which interprets the body as JSON and returns the full event stream.
1451
- *
1452
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1453
- */
1454
- patch(url: string, body: any | null, options: {
1455
- headers?: HttpHeaders | {
1456
- [header: string]: string | string[];
1457
- };
1458
- observe: 'events';
1459
- params?: HttpParams | {
1460
- [param: string]: string | string[];
1461
- };
1462
- reportProgress?: boolean;
1463
- responseType?: 'json';
1464
- withCredentials?: boolean;
1465
- }): Observable<HttpEvent<Object>>;
1466
- /**
1467
- * Construct a PATCH request which interprets the body as JSON and returns the full event stream.
1468
- *
1469
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1470
- */
1471
- patch<T>(url: string, body: any | null, options: {
1472
- headers?: HttpHeaders | {
1473
- [header: string]: string | string[];
1474
- };
1475
- observe: 'events';
1476
- params?: HttpParams | {
1477
- [param: string]: string | string[];
1478
- };
1479
- reportProgress?: boolean;
1480
- responseType?: 'json';
1481
- withCredentials?: boolean;
1482
- }): Observable<HttpEvent<T>>;
1483
- /**
1484
- * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full response.
1485
- *
1486
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1487
- */
1488
- patch(url: string, body: any | null, options: {
1489
- headers?: HttpHeaders | {
1490
- [header: string]: string | string[];
1491
- };
1492
- observe: 'response';
1493
- params?: HttpParams | {
1494
- [param: string]: string | string[];
1495
- };
1496
- reportProgress?: boolean;
1497
- responseType: 'arraybuffer';
1498
- withCredentials?: boolean;
1499
- }): Observable<HttpResponse<ArrayBuffer>>;
1500
- /**
1501
- * Construct a PATCH request which interprets the body as a `Blob` and returns the full response.
1502
- *
1503
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1504
- */
1505
- patch(url: string, body: any | null, options: {
1506
- headers?: HttpHeaders | {
1507
- [header: string]: string | string[];
1508
- };
1509
- observe: 'response';
1510
- params?: HttpParams | {
1511
- [param: string]: string | string[];
1512
- };
1513
- reportProgress?: boolean;
1514
- responseType: 'blob';
1515
- withCredentials?: boolean;
1516
- }): Observable<HttpResponse<Blob>>;
1517
- /**
1518
- * Construct a PATCH request which interprets the body as text and returns the full response.
1519
- *
1520
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1521
- */
1522
- patch(url: string, body: any | null, options: {
1523
- headers?: HttpHeaders | {
1524
- [header: string]: string | string[];
1525
- };
1526
- observe: 'response';
1527
- params?: HttpParams | {
1528
- [param: string]: string | string[];
1529
- };
1530
- reportProgress?: boolean;
1531
- responseType: 'text';
1532
- withCredentials?: boolean;
1533
- }): Observable<HttpResponse<string>>;
1534
- /**
1535
- * Construct a PATCH request which interprets the body as JSON and returns the full response.
1536
- *
1537
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1538
- */
1539
- patch(url: string, body: any | null, options: {
1540
- headers?: HttpHeaders | {
1541
- [header: string]: string | string[];
1542
- };
1543
- observe: 'response';
1544
- params?: HttpParams | {
1545
- [param: string]: string | string[];
1546
- };
1547
- reportProgress?: boolean;
1548
- responseType?: 'json';
1549
- withCredentials?: boolean;
1550
- }): Observable<HttpResponse<Object>>;
1551
- /**
1552
- * Construct a PATCH request which interprets the body as JSON and returns the full response.
1553
- *
1554
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1555
- */
1556
- patch<T>(url: string, body: any | null, options: {
1557
- headers?: HttpHeaders | {
1558
- [header: string]: string | string[];
1559
- };
1560
- observe: 'response';
1561
- params?: HttpParams | {
1562
- [param: string]: string | string[];
1563
- };
1564
- reportProgress?: boolean;
1565
- responseType?: 'json';
1566
- withCredentials?: boolean;
1567
- }): Observable<HttpResponse<T>>;
1568
- /**
1569
- * Construct a PATCH request which interprets the body as JSON and returns it.
1570
- *
1571
- * @return an `Observable` of the body as an `Object`.
1572
- */
1573
- patch(url: string, body: any | null, options?: {
1574
- headers?: HttpHeaders | {
1575
- [header: string]: string | string[];
1576
- };
1577
- observe?: 'body';
1578
- params?: HttpParams | {
1579
- [param: string]: string | string[];
1580
- };
1581
- reportProgress?: boolean;
1582
- responseType?: 'json';
1583
- withCredentials?: boolean;
1584
- }): Observable<Object>;
1585
- /**
1586
- * Construct a PATCH request which interprets the body as JSON and returns it.
1587
- *
1588
- * @return an `Observable` of the body as type `T`.
1589
- */
1590
- patch<T>(url: string, body: any | null, options?: {
1591
- headers?: HttpHeaders | {
1592
- [header: string]: string | string[];
1593
- };
1594
- observe?: 'body';
1595
- params?: HttpParams | {
1596
- [param: string]: string | string[];
1597
- };
1598
- reportProgress?: boolean;
1599
- responseType?: 'json';
1600
- withCredentials?: boolean;
1601
- }): Observable<T>;
1602
- /**
1603
- * Construct a POST request which interprets the body as an `ArrayBuffer` and returns it.
1604
- *
1605
- * @return an `Observable` of the body as an `ArrayBuffer`.
1606
- */
1607
- post(url: string, body: any | null, options: {
1608
- headers?: HttpHeaders | {
1609
- [header: string]: string | string[];
1610
- };
1611
- observe?: 'body';
1612
- params?: HttpParams | {
1613
- [param: string]: string | string[];
1614
- };
1615
- reportProgress?: boolean;
1616
- responseType: 'arraybuffer';
1617
- withCredentials?: boolean;
1618
- }): Observable<ArrayBuffer>;
1619
- /**
1620
- * Construct a POST request which interprets the body as a `Blob` and returns it.
1621
- *
1622
- * @return an `Observable` of the body as a `Blob`.
1623
- */
1624
- post(url: string, body: any | null, options: {
1625
- headers?: HttpHeaders | {
1626
- [header: string]: string | string[];
1627
- };
1628
- observe?: 'body';
1629
- params?: HttpParams | {
1630
- [param: string]: string | string[];
1631
- };
1632
- reportProgress?: boolean;
1633
- responseType: 'blob';
1634
- withCredentials?: boolean;
1635
- }): Observable<Blob>;
1636
- /**
1637
- * Construct a POST request which interprets the body as text and returns it.
1638
- *
1639
- * @return an `Observable` of the body as a `string`.
1640
- */
1641
- post(url: string, body: any | null, options: {
1642
- headers?: HttpHeaders | {
1643
- [header: string]: string | string[];
1644
- };
1645
- observe?: 'body';
1646
- params?: HttpParams | {
1647
- [param: string]: string | string[];
1648
- };
1649
- reportProgress?: boolean;
1650
- responseType: 'text';
1651
- withCredentials?: boolean;
1652
- }): Observable<string>;
1653
- /**
1654
- * Construct a POST request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1655
- *
1656
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1657
- */
1658
- post(url: string, body: any | null, options: {
1659
- headers?: HttpHeaders | {
1660
- [header: string]: string | string[];
1661
- };
1662
- observe: 'events';
1663
- params?: HttpParams | {
1664
- [param: string]: string | string[];
1665
- };
1666
- reportProgress?: boolean;
1667
- responseType: 'arraybuffer';
1668
- withCredentials?: boolean;
1669
- }): Observable<HttpEvent<ArrayBuffer>>;
1670
- /**
1671
- * Construct a POST request which interprets the body as a `Blob` and returns the full event stream.
1672
- *
1673
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1674
- */
1675
- post(url: string, body: any | null, options: {
1676
- headers?: HttpHeaders | {
1677
- [header: string]: string | string[];
1678
- };
1679
- observe: 'events';
1680
- params?: HttpParams | {
1681
- [param: string]: string | string[];
1682
- };
1683
- reportProgress?: boolean;
1684
- responseType: 'blob';
1685
- withCredentials?: boolean;
1686
- }): Observable<HttpEvent<Blob>>;
1687
- /**
1688
- * Construct a POST request which interprets the body as text and returns the full event stream.
1689
- *
1690
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1691
- */
1692
- post(url: string, body: any | null, options: {
1693
- headers?: HttpHeaders | {
1694
- [header: string]: string | string[];
1695
- };
1696
- observe: 'events';
1697
- params?: HttpParams | {
1698
- [param: string]: string | string[];
1699
- };
1700
- reportProgress?: boolean;
1701
- responseType: 'text';
1702
- withCredentials?: boolean;
1703
- }): Observable<HttpEvent<string>>;
1704
- /**
1705
- * Construct a POST request which interprets the body as JSON and returns the full event stream.
1706
- *
1707
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1708
- */
1709
- post(url: string, body: any | null, options: {
1710
- headers?: HttpHeaders | {
1711
- [header: string]: string | string[];
1712
- };
1713
- observe: 'events';
1714
- params?: HttpParams | {
1715
- [param: string]: string | string[];
1716
- };
1717
- reportProgress?: boolean;
1718
- responseType?: 'json';
1719
- withCredentials?: boolean;
1720
- }): Observable<HttpEvent<Object>>;
1721
- /**
1722
- * Construct a POST request which interprets the body as JSON and returns the full event stream.
1723
- *
1724
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1725
- */
1726
- post<T>(url: string, body: any | null, options: {
1727
- headers?: HttpHeaders | {
1728
- [header: string]: string | string[];
1729
- };
1730
- observe: 'events';
1731
- params?: HttpParams | {
1732
- [param: string]: string | string[];
1733
- };
1734
- reportProgress?: boolean;
1735
- responseType?: 'json';
1736
- withCredentials?: boolean;
1737
- }): Observable<HttpEvent<T>>;
1738
- /**
1739
- * Construct a POST request which interprets the body as an `ArrayBuffer` and returns the full response.
1740
- *
1741
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1742
- */
1743
- post(url: string, body: any | null, options: {
1744
- headers?: HttpHeaders | {
1745
- [header: string]: string | string[];
1746
- };
1747
- observe: 'response';
1748
- params?: HttpParams | {
1749
- [param: string]: string | string[];
1750
- };
1751
- reportProgress?: boolean;
1752
- responseType: 'arraybuffer';
1753
- withCredentials?: boolean;
1754
- }): Observable<HttpResponse<ArrayBuffer>>;
1755
- /**
1756
- * Construct a POST request which interprets the body as a `Blob` and returns the full response.
1757
- *
1758
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1759
- */
1760
- post(url: string, body: any | null, options: {
1761
- headers?: HttpHeaders | {
1762
- [header: string]: string | string[];
1763
- };
1764
- observe: 'response';
1765
- params?: HttpParams | {
1766
- [param: string]: string | string[];
1767
- };
1768
- reportProgress?: boolean;
1769
- responseType: 'blob';
1770
- withCredentials?: boolean;
1771
- }): Observable<HttpResponse<Blob>>;
1772
- /**
1773
- * Construct a POST request which interprets the body as text and returns the full response.
1774
- *
1775
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1776
- */
1777
- post(url: string, body: any | null, options: {
1778
- headers?: HttpHeaders | {
1779
- [header: string]: string | string[];
1780
- };
1781
- observe: 'response';
1782
- params?: HttpParams | {
1783
- [param: string]: string | string[];
1784
- };
1785
- reportProgress?: boolean;
1786
- responseType: 'text';
1787
- withCredentials?: boolean;
1788
- }): Observable<HttpResponse<string>>;
1789
- /**
1790
- * Construct a POST request which interprets the body as JSON and returns the full response.
1791
- *
1792
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1793
- */
1794
- post(url: string, body: any | null, options: {
1795
- headers?: HttpHeaders | {
1796
- [header: string]: string | string[];
1797
- };
1798
- observe: 'response';
1799
- params?: HttpParams | {
1800
- [param: string]: string | string[];
1801
- };
1802
- reportProgress?: boolean;
1803
- responseType?: 'json';
1804
- withCredentials?: boolean;
1805
- }): Observable<HttpResponse<Object>>;
1806
- /**
1807
- * Construct a POST request which interprets the body as JSON and returns the full response.
1808
- *
1809
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1810
- */
1811
- post<T>(url: string, body: any | null, options: {
1812
- headers?: HttpHeaders | {
1813
- [header: string]: string | string[];
1814
- };
1815
- observe: 'response';
1816
- params?: HttpParams | {
1817
- [param: string]: string | string[];
1818
- };
1819
- reportProgress?: boolean;
1820
- responseType?: 'json';
1821
- withCredentials?: boolean;
1822
- }): Observable<HttpResponse<T>>;
1823
- /**
1824
- * Construct a POST request which interprets the body as JSON and returns it.
1825
- *
1826
- * @return an `Observable` of the body as an `Object`.
1827
- */
1828
- post(url: string, body: any | null, options?: {
1829
- headers?: HttpHeaders | {
1830
- [header: string]: string | string[];
1831
- };
1832
- observe?: 'body';
1833
- params?: HttpParams | {
1834
- [param: string]: string | string[];
1835
- };
1836
- reportProgress?: boolean;
1837
- responseType?: 'json';
1838
- withCredentials?: boolean;
1839
- }): Observable<Object>;
1840
- /**
1841
- * Construct a POST request which interprets the body as JSON and returns it.
1842
- *
1843
- * @return an `Observable` of the body as type `T`.
1844
- */
1845
- post<T>(url: string, body: any | null, options?: {
1846
- headers?: HttpHeaders | {
1847
- [header: string]: string | string[];
1848
- };
1849
- observe?: 'body';
1850
- params?: HttpParams | {
1851
- [param: string]: string | string[];
1852
- };
1853
- reportProgress?: boolean;
1854
- responseType?: 'json';
1855
- withCredentials?: boolean;
1856
- }): Observable<T>;
1857
- /**
1858
- * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns it.
1859
- *
1860
- * @return an `Observable` of the body as an `ArrayBuffer`.
1861
- */
1862
- put(url: string, body: any | null, options: {
1863
- headers?: HttpHeaders | {
1864
- [header: string]: string | string[];
1865
- };
1866
- observe?: 'body';
1867
- params?: HttpParams | {
1868
- [param: string]: string | string[];
1869
- };
1870
- reportProgress?: boolean;
1871
- responseType: 'arraybuffer';
1872
- withCredentials?: boolean;
1873
- }): Observable<ArrayBuffer>;
1874
- /**
1875
- * Construct a PUT request which interprets the body as a `Blob` and returns it.
1876
- *
1877
- * @return an `Observable` of the body as a `Blob`.
1878
- */
1879
- put(url: string, body: any | null, options: {
1880
- headers?: HttpHeaders | {
1881
- [header: string]: string | string[];
1882
- };
1883
- observe?: 'body';
1884
- params?: HttpParams | {
1885
- [param: string]: string | string[];
1886
- };
1887
- reportProgress?: boolean;
1888
- responseType: 'blob';
1889
- withCredentials?: boolean;
1890
- }): Observable<Blob>;
1891
- /**
1892
- * Construct a PUT request which interprets the body as text and returns it.
1893
- *
1894
- * @return an `Observable` of the body as a `string`.
1895
- */
1896
- put(url: string, body: any | null, options: {
1897
- headers?: HttpHeaders | {
1898
- [header: string]: string | string[];
1899
- };
1900
- observe?: 'body';
1901
- params?: HttpParams | {
1902
- [param: string]: string | string[];
1903
- };
1904
- reportProgress?: boolean;
1905
- responseType: 'text';
1906
- withCredentials?: boolean;
1907
- }): Observable<string>;
1908
- /**
1909
- * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1910
- *
1911
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1912
- */
1913
- put(url: string, body: any | null, options: {
1914
- headers?: HttpHeaders | {
1915
- [header: string]: string | string[];
1916
- };
1917
- observe: 'events';
1918
- params?: HttpParams | {
1919
- [param: string]: string | string[];
1920
- };
1921
- reportProgress?: boolean;
1922
- responseType: 'arraybuffer';
1923
- withCredentials?: boolean;
1924
- }): Observable<HttpEvent<ArrayBuffer>>;
1925
- /**
1926
- * Construct a PUT request which interprets the body as a `Blob` and returns the full event stream.
1927
- *
1928
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1929
- */
1930
- put(url: string, body: any | null, options: {
1931
- headers?: HttpHeaders | {
1932
- [header: string]: string | string[];
1933
- };
1934
- observe: 'events';
1935
- params?: HttpParams | {
1936
- [param: string]: string | string[];
1937
- };
1938
- reportProgress?: boolean;
1939
- responseType: 'blob';
1940
- withCredentials?: boolean;
1941
- }): Observable<HttpEvent<Blob>>;
1942
- /**
1943
- * Construct a PUT request which interprets the body as text and returns the full event stream.
1944
- *
1945
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1946
- */
1947
- put(url: string, body: any | null, options: {
1948
- headers?: HttpHeaders | {
1949
- [header: string]: string | string[];
1950
- };
1951
- observe: 'events';
1952
- params?: HttpParams | {
1953
- [param: string]: string | string[];
1954
- };
1955
- reportProgress?: boolean;
1956
- responseType: 'text';
1957
- withCredentials?: boolean;
1958
- }): Observable<HttpEvent<string>>;
1959
- /**
1960
- * Construct a PUT request which interprets the body as JSON and returns the full event stream.
1961
- *
1962
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1963
- */
1964
- put(url: string, body: any | null, options: {
1965
- headers?: HttpHeaders | {
1966
- [header: string]: string | string[];
1967
- };
1968
- observe: 'events';
1969
- params?: HttpParams | {
1970
- [param: string]: string | string[];
1971
- };
1972
- reportProgress?: boolean;
1973
- responseType?: 'json';
1974
- withCredentials?: boolean;
1975
- }): Observable<HttpEvent<Object>>;
1976
- /**
1977
- * Construct a PUT request which interprets the body as JSON and returns the full event stream.
1978
- *
1979
- * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1980
- */
1981
- put<T>(url: string, body: any | null, options: {
1982
- headers?: HttpHeaders | {
1983
- [header: string]: string | string[];
1984
- };
1985
- observe: 'events';
1986
- responseType?: 'json';
1987
- withCredentials?: boolean;
1988
- }): Observable<HttpEvent<T>>;
1989
- /**
1990
- * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full response.
1991
- *
1992
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1993
- */
1994
- put(url: string, body: any | null, options: {
1995
- headers?: HttpHeaders | {
1996
- [header: string]: string | string[];
1997
- };
1998
- observe: 'response';
1999
- params?: HttpParams | {
2000
- [param: string]: string | string[];
2001
- };
2002
- reportProgress?: boolean;
2003
- responseType: 'arraybuffer';
2004
- withCredentials?: boolean;
2005
- }): Observable<HttpResponse<ArrayBuffer>>;
2006
- /**
2007
- * Construct a PUT request which interprets the body as a `Blob` and returns the full response.
2008
- *
2009
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
2010
- */
2011
- put(url: string, body: any | null, options: {
2012
- headers?: HttpHeaders | {
2013
- [header: string]: string | string[];
2014
- };
2015
- observe: 'response';
2016
- params?: HttpParams | {
2017
- [param: string]: string | string[];
2018
- };
2019
- reportProgress?: boolean;
2020
- responseType: 'blob';
2021
- withCredentials?: boolean;
2022
- }): Observable<HttpResponse<Blob>>;
2023
- /**
2024
- * Construct a PUT request which interprets the body as text and returns the full response.
2025
- *
2026
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
2027
- */
2028
- put(url: string, body: any | null, options: {
2029
- headers?: HttpHeaders | {
2030
- [header: string]: string | string[];
2031
- };
2032
- observe: 'response';
2033
- params?: HttpParams | {
2034
- [param: string]: string | string[];
2035
- };
2036
- reportProgress?: boolean;
2037
- responseType: 'text';
2038
- withCredentials?: boolean;
2039
- }): Observable<HttpResponse<string>>;
2040
- /**
2041
- * Construct a PUT request which interprets the body as JSON and returns the full response.
2042
- *
2043
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
2044
- */
2045
- put(url: string, body: any | null, options: {
2046
- headers?: HttpHeaders | {
2047
- [header: string]: string | string[];
2048
- };
2049
- observe: 'response';
2050
- params?: HttpParams | {
2051
- [param: string]: string | string[];
2052
- };
2053
- reportProgress?: boolean;
2054
- responseType?: 'json';
2055
- withCredentials?: boolean;
2056
- }): Observable<HttpResponse<Object>>;
2057
- /**
2058
- * Construct a PUT request which interprets the body as JSON and returns the full response.
2059
- *
2060
- * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
2061
- */
2062
- put<T>(url: string, body: any | null, options: {
2063
- headers?: HttpHeaders | {
2064
- [header: string]: string | string[];
2065
- };
2066
- observe: 'response';
2067
- params?: HttpParams | {
2068
- [param: string]: string | string[];
2069
- };
2070
- reportProgress?: boolean;
2071
- responseType?: 'json';
2072
- withCredentials?: boolean;
2073
- }): Observable<HttpResponse<T>>;
2074
- /**
2075
- * Construct a PUT request which interprets the body as JSON and returns it.
2076
- *
2077
- * @return an `Observable` of the body as an `Object`.
2078
- */
2079
- put(url: string, body: any | null, options?: {
2080
- headers?: HttpHeaders | {
2081
- [header: string]: string | string[];
2082
- };
2083
- observe?: 'body';
2084
- params?: HttpParams | {
2085
- [param: string]: string | string[];
2086
- };
2087
- reportProgress?: boolean;
2088
- responseType?: 'json';
2089
- withCredentials?: boolean;
2090
- }): Observable<Object>;
2091
- /**
2092
- * Construct a PUT request which interprets the body as JSON and returns it.
2093
- *
2094
- * @return an `Observable` of the body as type `T`.
2095
- */
2096
- put<T>(url: string, body: any | null, options?: {
2097
- headers?: HttpHeaders | {
2098
- [header: string]: string | string[];
2099
- };
2100
- observe?: 'body';
2101
- params?: HttpParams | {
2102
- [param: string]: string | string[];
2103
- };
2104
- reportProgress?: boolean;
2105
- responseType?: 'json';
2106
- withCredentials?: boolean;
2107
- }): Observable<T>;
2108
- }
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { Observable } from 'rxjs';
9
+ import { HttpHandler } from './backend';
10
+ import { HttpHeaders } from './headers';
11
+ import { HttpParams } from './params';
12
+ import { HttpRequest } from './request';
13
+ import { HttpEvent, HttpResponse } from './response';
14
+ export type HttpObserve = 'body' | 'events' | 'response';
15
+ /**
16
+ * Perform HTTP requests.
17
+ *
18
+ * `HttpClient` is available as an injectable class, with methods to perform HTTP requests.
19
+ * Each request method has multiple signatures, and the return type varies according to which
20
+ * signature is called (mainly the values of `observe` and `responseType`).
21
+ *
22
+ *
23
+ */
24
+ export declare class HttpClient {
25
+ private handler;
26
+ constructor(handler: HttpHandler);
27
+ /**
28
+ * Send the given `HttpRequest` and return a stream of `HttpEvents`.
29
+ */
30
+ request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
31
+ /**
32
+ * Construct a request which interprets the body as an `ArrayBuffer` and returns it.
33
+ *
34
+ * @return an `Observable` of the body as an `ArrayBuffer`.
35
+ */
36
+ request(method: string, url: string, options: {
37
+ body?: any;
38
+ headers?: HttpHeaders | {
39
+ [header: string]: string | string[];
40
+ };
41
+ observe?: 'body';
42
+ params?: HttpParams | {
43
+ [param: string]: string | string[];
44
+ };
45
+ reportProgress?: boolean;
46
+ responseType: 'arraybuffer';
47
+ withCredentials?: boolean;
48
+ }): Observable<ArrayBuffer>;
49
+ /**
50
+ * Construct a request which interprets the body as a `Blob` and returns it.
51
+ *
52
+ * @return an `Observable` of the body as a `Blob`.
53
+ */
54
+ request(method: string, url: string, options: {
55
+ body?: any;
56
+ headers?: HttpHeaders | {
57
+ [header: string]: string | string[];
58
+ };
59
+ observe?: 'body';
60
+ params?: HttpParams | {
61
+ [param: string]: string | string[];
62
+ };
63
+ reportProgress?: boolean;
64
+ responseType: 'blob';
65
+ withCredentials?: boolean;
66
+ }): Observable<Blob>;
67
+ /**
68
+ * Construct a request which interprets the body as text and returns it.
69
+ *
70
+ * @return an `Observable` of the body as a `string`.
71
+ */
72
+ request(method: string, url: string, options: {
73
+ body?: any;
74
+ headers?: HttpHeaders | {
75
+ [header: string]: string | string[];
76
+ };
77
+ observe?: 'body';
78
+ params?: HttpParams | {
79
+ [param: string]: string | string[];
80
+ };
81
+ reportProgress?: boolean;
82
+ responseType: 'text';
83
+ withCredentials?: boolean;
84
+ }): Observable<string>;
85
+ /**
86
+ * Construct a request which interprets the body as an `ArrayBuffer` and returns the full event stream.
87
+ *
88
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
89
+ */
90
+ request(method: string, url: string, options: {
91
+ body?: any;
92
+ headers?: HttpHeaders | {
93
+ [header: string]: string | string[];
94
+ };
95
+ params?: HttpParams | {
96
+ [param: string]: string | string[];
97
+ };
98
+ observe: 'events';
99
+ reportProgress?: boolean;
100
+ responseType: 'arraybuffer';
101
+ withCredentials?: boolean;
102
+ }): Observable<HttpEvent<ArrayBuffer>>;
103
+ /**
104
+ * Construct a request which interprets the body as an `Blob` and returns the full event stream.
105
+ *
106
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
107
+ */
108
+ request(method: string, url: string, options: {
109
+ body?: any;
110
+ headers?: HttpHeaders | {
111
+ [header: string]: string | string[];
112
+ };
113
+ observe: 'events';
114
+ params?: HttpParams | {
115
+ [param: string]: string | string[];
116
+ };
117
+ reportProgress?: boolean;
118
+ responseType: 'blob';
119
+ withCredentials?: boolean;
120
+ }): Observable<HttpEvent<Blob>>;
121
+ /**
122
+ * Construct a request which interprets the body as text and returns the full event stream.
123
+ *
124
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
125
+ */
126
+ request(method: string, url: string, options: {
127
+ body?: any;
128
+ headers?: HttpHeaders | {
129
+ [header: string]: string | string[];
130
+ };
131
+ observe: 'events';
132
+ params?: HttpParams | {
133
+ [param: string]: string | string[];
134
+ };
135
+ reportProgress?: boolean;
136
+ responseType: 'text';
137
+ withCredentials?: boolean;
138
+ }): Observable<HttpEvent<string>>;
139
+ /**
140
+ * Construct a request which interprets the body as JSON and returns the full event stream.
141
+ *
142
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
143
+ */
144
+ request(method: string, url: string, options: {
145
+ body?: any;
146
+ headers?: HttpHeaders | {
147
+ [header: string]: string | string[];
148
+ };
149
+ reportProgress?: boolean;
150
+ observe: 'events';
151
+ params?: HttpParams | {
152
+ [param: string]: string | string[];
153
+ };
154
+ responseType?: 'json';
155
+ withCredentials?: boolean;
156
+ }): Observable<HttpEvent<any>>;
157
+ /**
158
+ * Construct a request which interprets the body as JSON and returns the full event stream.
159
+ *
160
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `R`.
161
+ */
162
+ request<R>(method: string, url: string, options: {
163
+ body?: any;
164
+ headers?: HttpHeaders | {
165
+ [header: string]: string | string[];
166
+ };
167
+ reportProgress?: boolean;
168
+ observe: 'events';
169
+ params?: HttpParams | {
170
+ [param: string]: string | string[];
171
+ };
172
+ responseType?: 'json';
173
+ withCredentials?: boolean;
174
+ }): Observable<HttpEvent<R>>;
175
+ /**
176
+ * Construct a request which interprets the body as an `ArrayBuffer` and returns the full response.
177
+ *
178
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
179
+ */
180
+ request(method: string, url: string, options: {
181
+ body?: any;
182
+ headers?: HttpHeaders | {
183
+ [header: string]: string | string[];
184
+ };
185
+ observe: 'response';
186
+ params?: HttpParams | {
187
+ [param: string]: string | string[];
188
+ };
189
+ reportProgress?: boolean;
190
+ responseType: 'arraybuffer';
191
+ withCredentials?: boolean;
192
+ }): Observable<HttpResponse<ArrayBuffer>>;
193
+ /**
194
+ * Construct a request which interprets the body as a `Blob` and returns the full response.
195
+ *
196
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
197
+ */
198
+ request(method: string, url: string, options: {
199
+ body?: any;
200
+ headers?: HttpHeaders | {
201
+ [header: string]: string | string[];
202
+ };
203
+ observe: 'response';
204
+ params?: HttpParams | {
205
+ [param: string]: string | string[];
206
+ };
207
+ reportProgress?: boolean;
208
+ responseType: 'blob';
209
+ withCredentials?: boolean;
210
+ }): Observable<HttpResponse<Blob>>;
211
+ /**
212
+ * Construct a request which interprets the body as text and returns the full response.
213
+ *
214
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
215
+ */
216
+ request(method: string, url: string, options: {
217
+ body?: any;
218
+ headers?: HttpHeaders | {
219
+ [header: string]: string | string[];
220
+ };
221
+ observe: 'response';
222
+ params?: HttpParams | {
223
+ [param: string]: string | string[];
224
+ };
225
+ reportProgress?: boolean;
226
+ responseType: 'text';
227
+ withCredentials?: boolean;
228
+ }): Observable<HttpResponse<string>>;
229
+ /**
230
+ * Construct a request which interprets the body as JSON and returns the full response.
231
+ *
232
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
233
+ */
234
+ request(method: string, url: string, options: {
235
+ body?: any;
236
+ headers?: HttpHeaders | {
237
+ [header: string]: string | string[];
238
+ };
239
+ reportProgress?: boolean;
240
+ observe: 'response';
241
+ params?: HttpParams | {
242
+ [param: string]: string | string[];
243
+ };
244
+ responseType?: 'json';
245
+ withCredentials?: boolean;
246
+ }): Observable<HttpResponse<Object>>;
247
+ /**
248
+ * Construct a request which interprets the body as JSON and returns the full response.
249
+ *
250
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
251
+ */
252
+ request<R>(method: string, url: string, options: {
253
+ body?: any;
254
+ headers?: HttpHeaders | {
255
+ [header: string]: string | string[];
256
+ };
257
+ reportProgress?: boolean;
258
+ observe: 'response';
259
+ params?: HttpParams | {
260
+ [param: string]: string | string[];
261
+ };
262
+ responseType?: 'json';
263
+ withCredentials?: boolean;
264
+ }): Observable<HttpResponse<R>>;
265
+ /**
266
+ * Construct a request which interprets the body as JSON and returns it.
267
+ *
268
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
269
+ */
270
+ request(method: string, url: string, options?: {
271
+ body?: any;
272
+ headers?: HttpHeaders | {
273
+ [header: string]: string | string[];
274
+ };
275
+ observe?: 'body';
276
+ params?: HttpParams | {
277
+ [param: string]: string | string[];
278
+ };
279
+ responseType?: 'json';
280
+ reportProgress?: boolean;
281
+ withCredentials?: boolean;
282
+ }): Observable<Object>;
283
+ /**
284
+ * Construct a request which interprets the body as JSON and returns it.
285
+ *
286
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`.
287
+ */
288
+ request<R>(method: string, url: string, options?: {
289
+ body?: any;
290
+ headers?: HttpHeaders | {
291
+ [header: string]: string | string[];
292
+ };
293
+ observe?: 'body';
294
+ params?: HttpParams | {
295
+ [param: string]: string | string[];
296
+ };
297
+ responseType?: 'json';
298
+ reportProgress?: boolean;
299
+ withCredentials?: boolean;
300
+ }): Observable<R>;
301
+ /**
302
+ * Construct a request in a manner where response type and requested `Observable` are not known
303
+ * statically.
304
+ *
305
+ * @return an `Observable` of whatever was requested, typed to `any`.
306
+ */
307
+ request(method: string, url: string, options?: {
308
+ body?: any;
309
+ headers?: HttpHeaders | {
310
+ [header: string]: string | string[];
311
+ };
312
+ params?: HttpParams | {
313
+ [param: string]: string | string[];
314
+ };
315
+ observe?: HttpObserve;
316
+ reportProgress?: boolean;
317
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
318
+ withCredentials?: boolean;
319
+ }): Observable<any>;
320
+ /**
321
+ * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns it.
322
+ *
323
+ * @return an `Observable` of the body as an `ArrayBuffer`.
324
+ */
325
+ delete(url: string, options: {
326
+ headers?: HttpHeaders | {
327
+ [header: string]: string | string[];
328
+ };
329
+ observe?: 'body';
330
+ params?: HttpParams | {
331
+ [param: string]: string | string[];
332
+ };
333
+ reportProgress?: boolean;
334
+ responseType: 'arraybuffer';
335
+ withCredentials?: boolean;
336
+ }): Observable<ArrayBuffer>;
337
+ /**
338
+ * Construct a DELETE request which interprets the body as a `Blob` and returns it.
339
+ *
340
+ * @return an `Observable` of the body as a `Blob`.
341
+ */
342
+ delete(url: string, options: {
343
+ headers?: HttpHeaders | {
344
+ [header: string]: string | string[];
345
+ };
346
+ observe?: 'body';
347
+ params?: HttpParams | {
348
+ [param: string]: string | string[];
349
+ };
350
+ reportProgress?: boolean;
351
+ responseType: 'blob';
352
+ withCredentials?: boolean;
353
+ }): Observable<Blob>;
354
+ /**
355
+ * Construct a DELETE request which interprets the body as text and returns it.
356
+ *
357
+ * @return an `Observable` of the body as a `string`.
358
+ */
359
+ delete(url: string, options: {
360
+ headers?: HttpHeaders | {
361
+ [header: string]: string | string[];
362
+ };
363
+ observe?: 'body';
364
+ params?: HttpParams | {
365
+ [param: string]: string | string[];
366
+ };
367
+ reportProgress?: boolean;
368
+ responseType: 'text';
369
+ withCredentials?: boolean;
370
+ }): Observable<string>;
371
+ /**
372
+ * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full event stream.
373
+ *
374
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
375
+ */
376
+ delete(url: string, options: {
377
+ headers?: HttpHeaders | {
378
+ [header: string]: string | string[];
379
+ };
380
+ observe: 'events';
381
+ params?: HttpParams | {
382
+ [param: string]: string | string[];
383
+ };
384
+ reportProgress?: boolean;
385
+ responseType: 'arraybuffer';
386
+ withCredentials?: boolean;
387
+ }): Observable<HttpEvent<ArrayBuffer>>;
388
+ /**
389
+ * Construct a DELETE request which interprets the body as a `Blob` and returns the full event stream.
390
+ *
391
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
392
+ */
393
+ delete(url: string, options: {
394
+ headers?: HttpHeaders | {
395
+ [header: string]: string | string[];
396
+ };
397
+ observe: 'events';
398
+ params?: HttpParams | {
399
+ [param: string]: string | string[];
400
+ };
401
+ reportProgress?: boolean;
402
+ responseType: 'blob';
403
+ withCredentials?: boolean;
404
+ }): Observable<HttpEvent<Blob>>;
405
+ /**
406
+ * Construct a DELETE request which interprets the body as text and returns the full event stream.
407
+ *
408
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
409
+ */
410
+ delete(url: string, options: {
411
+ headers?: HttpHeaders | {
412
+ [header: string]: string | string[];
413
+ };
414
+ observe: 'events';
415
+ params?: HttpParams | {
416
+ [param: string]: string | string[];
417
+ };
418
+ reportProgress?: boolean;
419
+ responseType: 'text';
420
+ withCredentials?: boolean;
421
+ }): Observable<HttpEvent<string>>;
422
+ /**
423
+ * Construct a DELETE request which interprets the body as JSON and returns the full event stream.
424
+ *
425
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
426
+ */
427
+ delete(url: string, options: {
428
+ headers?: HttpHeaders | {
429
+ [header: string]: string | string[];
430
+ };
431
+ observe: 'events';
432
+ params?: HttpParams | {
433
+ [param: string]: string | string[];
434
+ };
435
+ reportProgress?: boolean;
436
+ responseType?: 'json';
437
+ withCredentials?: boolean;
438
+ }): Observable<HttpEvent<Object>>;
439
+ /**
440
+ * Construct a DELETE request which interprets the body as JSON and returns the full event stream.
441
+ *
442
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
443
+ */
444
+ delete<T>(url: string, options: {
445
+ headers?: HttpHeaders | {
446
+ [header: string]: string | string[];
447
+ };
448
+ observe: 'events';
449
+ params?: HttpParams | {
450
+ [param: string]: string | string[];
451
+ };
452
+ reportProgress?: boolean;
453
+ responseType?: 'json';
454
+ withCredentials?: boolean;
455
+ }): Observable<HttpEvent<T>>;
456
+ /**
457
+ * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full response.
458
+ *
459
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
460
+ */
461
+ delete(url: string, options: {
462
+ headers?: HttpHeaders | {
463
+ [header: string]: string | string[];
464
+ };
465
+ observe: 'response';
466
+ params?: HttpParams | {
467
+ [param: string]: string | string[];
468
+ };
469
+ reportProgress?: boolean;
470
+ responseType: 'arraybuffer';
471
+ withCredentials?: boolean;
472
+ }): Observable<HttpResponse<ArrayBuffer>>;
473
+ /**
474
+ * Construct a DELETE request which interprets the body as a `Blob` and returns the full response.
475
+ *
476
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
477
+ */
478
+ delete(url: string, options: {
479
+ headers?: HttpHeaders | {
480
+ [header: string]: string | string[];
481
+ };
482
+ observe: 'response';
483
+ params?: HttpParams | {
484
+ [param: string]: string | string[];
485
+ };
486
+ reportProgress?: boolean;
487
+ responseType: 'blob';
488
+ withCredentials?: boolean;
489
+ }): Observable<HttpResponse<Blob>>;
490
+ /**
491
+ * Construct a DELETE request which interprets the body as text and returns the full response.
492
+ *
493
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
494
+ */
495
+ delete(url: string, options: {
496
+ headers?: HttpHeaders | {
497
+ [header: string]: string | string[];
498
+ };
499
+ observe: 'response';
500
+ params?: HttpParams | {
501
+ [param: string]: string | string[];
502
+ };
503
+ reportProgress?: boolean;
504
+ responseType: 'text';
505
+ withCredentials?: boolean;
506
+ }): Observable<HttpResponse<string>>;
507
+ /**
508
+ * Construct a DELETE request which interprets the body as JSON and returns the full response.
509
+ *
510
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
511
+ */
512
+ delete(url: string, options: {
513
+ headers?: HttpHeaders | {
514
+ [header: string]: string | string[];
515
+ };
516
+ observe: 'response';
517
+ params?: HttpParams | {
518
+ [param: string]: string | string[];
519
+ };
520
+ reportProgress?: boolean;
521
+ responseType?: 'json';
522
+ withCredentials?: boolean;
523
+ }): Observable<HttpResponse<Object>>;
524
+ /**
525
+ * Construct a DELETE request which interprets the body as JSON and returns the full response.
526
+ *
527
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
528
+ */
529
+ delete<T>(url: string, options: {
530
+ headers?: HttpHeaders | {
531
+ [header: string]: string | string[];
532
+ };
533
+ observe: 'response';
534
+ params?: HttpParams | {
535
+ [param: string]: string | string[];
536
+ };
537
+ reportProgress?: boolean;
538
+ responseType?: 'json';
539
+ withCredentials?: boolean;
540
+ }): Observable<HttpResponse<T>>;
541
+ /**
542
+ * Construct a DELETE request which interprets the body as JSON and returns it.
543
+ *
544
+ * @return an `Observable` of the body as an `Object`.
545
+ */
546
+ delete(url: string, options?: {
547
+ headers?: HttpHeaders | {
548
+ [header: string]: string | string[];
549
+ };
550
+ observe?: 'body';
551
+ params?: HttpParams | {
552
+ [param: string]: string | string[];
553
+ };
554
+ reportProgress?: boolean;
555
+ responseType?: 'json';
556
+ withCredentials?: boolean;
557
+ }): Observable<Object>;
558
+ /**
559
+ * Construct a DELETE request which interprets the body as JSON and returns it.
560
+ *
561
+ * @return an `Observable` of the body as type `T`.
562
+ */
563
+ delete<T>(url: string, options?: {
564
+ headers?: HttpHeaders | {
565
+ [header: string]: string | string[];
566
+ };
567
+ observe?: 'body';
568
+ params?: HttpParams | {
569
+ [param: string]: string | string[];
570
+ };
571
+ reportProgress?: boolean;
572
+ responseType?: 'json';
573
+ withCredentials?: boolean;
574
+ }): Observable<T>;
575
+ /**
576
+ * Construct a GET request which interprets the body as an `ArrayBuffer` and returns it.
577
+ *
578
+ * @return an `Observable` of the body as an `ArrayBuffer`.
579
+ */
580
+ get(url: string, options: {
581
+ headers?: HttpHeaders | {
582
+ [header: string]: string | string[];
583
+ };
584
+ observe?: 'body';
585
+ params?: HttpParams | {
586
+ [param: string]: string | string[];
587
+ };
588
+ reportProgress?: boolean;
589
+ responseType: 'arraybuffer';
590
+ withCredentials?: boolean;
591
+ }): Observable<ArrayBuffer>;
592
+ /**
593
+ * Construct a GET request which interprets the body as a `Blob` and returns it.
594
+ *
595
+ * @return an `Observable` of the body as a `Blob`.
596
+ */
597
+ get(url: string, options: {
598
+ headers?: HttpHeaders | {
599
+ [header: string]: string | string[];
600
+ };
601
+ observe?: 'body';
602
+ params?: HttpParams | {
603
+ [param: string]: string | string[];
604
+ };
605
+ reportProgress?: boolean;
606
+ responseType: 'blob';
607
+ withCredentials?: boolean;
608
+ }): Observable<Blob>;
609
+ /**
610
+ * Construct a GET request which interprets the body as text and returns it.
611
+ *
612
+ * @return an `Observable` of the body as a `string`.
613
+ */
614
+ get(url: string, options: {
615
+ headers?: HttpHeaders | {
616
+ [header: string]: string | string[];
617
+ };
618
+ observe?: 'body';
619
+ params?: HttpParams | {
620
+ [param: string]: string | string[];
621
+ };
622
+ reportProgress?: boolean;
623
+ responseType: 'text';
624
+ withCredentials?: boolean;
625
+ }): Observable<string>;
626
+ /**
627
+ * Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full event stream.
628
+ *
629
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
630
+ */
631
+ get(url: string, options: {
632
+ headers?: HttpHeaders | {
633
+ [header: string]: string | string[];
634
+ };
635
+ observe: 'events';
636
+ params?: HttpParams | {
637
+ [param: string]: string | string[];
638
+ };
639
+ reportProgress?: boolean;
640
+ responseType: 'arraybuffer';
641
+ withCredentials?: boolean;
642
+ }): Observable<HttpEvent<ArrayBuffer>>;
643
+ /**
644
+ * Construct a GET request which interprets the body as a `Blob` and returns the full event stream.
645
+ *
646
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
647
+ */
648
+ get(url: string, options: {
649
+ headers?: HttpHeaders | {
650
+ [header: string]: string | string[];
651
+ };
652
+ observe: 'events';
653
+ params?: HttpParams | {
654
+ [param: string]: string | string[];
655
+ };
656
+ reportProgress?: boolean;
657
+ responseType: 'blob';
658
+ withCredentials?: boolean;
659
+ }): Observable<HttpEvent<Blob>>;
660
+ /**
661
+ * Construct a GET request which interprets the body as text and returns the full event stream.
662
+ *
663
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
664
+ */
665
+ get(url: string, options: {
666
+ headers?: HttpHeaders | {
667
+ [header: string]: string | string[];
668
+ };
669
+ observe: 'events';
670
+ params?: HttpParams | {
671
+ [param: string]: string | string[];
672
+ };
673
+ reportProgress?: boolean;
674
+ responseType: 'text';
675
+ withCredentials?: boolean;
676
+ }): Observable<HttpEvent<string>>;
677
+ /**
678
+ * Construct a GET request which interprets the body as JSON and returns the full event stream.
679
+ *
680
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
681
+ */
682
+ get(url: string, options: {
683
+ headers?: HttpHeaders | {
684
+ [header: string]: string | string[];
685
+ };
686
+ observe: 'events';
687
+ params?: HttpParams | {
688
+ [param: string]: string | string[];
689
+ };
690
+ reportProgress?: boolean;
691
+ responseType?: 'json';
692
+ withCredentials?: boolean;
693
+ }): Observable<HttpEvent<Object>>;
694
+ /**
695
+ * Construct a GET request which interprets the body as JSON and returns the full event stream.
696
+ *
697
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
698
+ */
699
+ get<T>(url: string, options: {
700
+ headers?: HttpHeaders | {
701
+ [header: string]: string | string[];
702
+ };
703
+ observe: 'events';
704
+ params?: HttpParams | {
705
+ [param: string]: string | string[];
706
+ };
707
+ reportProgress?: boolean;
708
+ responseType?: 'json';
709
+ withCredentials?: boolean;
710
+ }): Observable<HttpEvent<T>>;
711
+ /**
712
+ * Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full response.
713
+ *
714
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
715
+ */
716
+ get(url: string, options: {
717
+ headers?: HttpHeaders | {
718
+ [header: string]: string | string[];
719
+ };
720
+ observe: 'response';
721
+ params?: HttpParams | {
722
+ [param: string]: string | string[];
723
+ };
724
+ reportProgress?: boolean;
725
+ responseType: 'arraybuffer';
726
+ withCredentials?: boolean;
727
+ }): Observable<HttpResponse<ArrayBuffer>>;
728
+ /**
729
+ * Construct a GET request which interprets the body as a `Blob` and returns the full response.
730
+ *
731
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
732
+ */
733
+ get(url: string, options: {
734
+ headers?: HttpHeaders | {
735
+ [header: string]: string | string[];
736
+ };
737
+ observe: 'response';
738
+ params?: HttpParams | {
739
+ [param: string]: string | string[];
740
+ };
741
+ reportProgress?: boolean;
742
+ responseType: 'blob';
743
+ withCredentials?: boolean;
744
+ }): Observable<HttpResponse<Blob>>;
745
+ /**
746
+ * Construct a GET request which interprets the body as text and returns the full response.
747
+ *
748
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
749
+ */
750
+ get(url: string, options: {
751
+ headers?: HttpHeaders | {
752
+ [header: string]: string | string[];
753
+ };
754
+ observe: 'response';
755
+ params?: HttpParams | {
756
+ [param: string]: string | string[];
757
+ };
758
+ reportProgress?: boolean;
759
+ responseType: 'text';
760
+ withCredentials?: boolean;
761
+ }): Observable<HttpResponse<string>>;
762
+ /**
763
+ * Construct a GET request which interprets the body as JSON and returns the full response.
764
+ *
765
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
766
+ */
767
+ get(url: string, options: {
768
+ headers?: HttpHeaders | {
769
+ [header: string]: string | string[];
770
+ };
771
+ observe: 'response';
772
+ params?: HttpParams | {
773
+ [param: string]: string | string[];
774
+ };
775
+ reportProgress?: boolean;
776
+ responseType?: 'json';
777
+ withCredentials?: boolean;
778
+ }): Observable<HttpResponse<Object>>;
779
+ /**
780
+ * Construct a GET request which interprets the body as JSON and returns the full response.
781
+ *
782
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
783
+ */
784
+ get<T>(url: string, options: {
785
+ headers?: HttpHeaders | {
786
+ [header: string]: string | string[];
787
+ };
788
+ observe: 'response';
789
+ params?: HttpParams | {
790
+ [param: string]: string | string[];
791
+ };
792
+ reportProgress?: boolean;
793
+ responseType?: 'json';
794
+ withCredentials?: boolean;
795
+ }): Observable<HttpResponse<T>>;
796
+ /**
797
+ * Construct a GET request which interprets the body as JSON and returns it.
798
+ *
799
+ * @return an `Observable` of the body as an `Object`.
800
+ */
801
+ get(url: string, options?: {
802
+ headers?: HttpHeaders | {
803
+ [header: string]: string | string[];
804
+ };
805
+ observe?: 'body';
806
+ params?: HttpParams | {
807
+ [param: string]: string | string[];
808
+ };
809
+ reportProgress?: boolean;
810
+ responseType?: 'json';
811
+ withCredentials?: boolean;
812
+ }): Observable<Object>;
813
+ /**
814
+ * Construct a GET request which interprets the body as JSON and returns it.
815
+ *
816
+ * @return an `Observable` of the body as type `T`.
817
+ */
818
+ get<T>(url: string, options?: {
819
+ headers?: HttpHeaders | {
820
+ [header: string]: string | string[];
821
+ };
822
+ observe?: 'body';
823
+ params?: HttpParams | {
824
+ [param: string]: string | string[];
825
+ };
826
+ reportProgress?: boolean;
827
+ responseType?: 'json';
828
+ withCredentials?: boolean;
829
+ }): Observable<T>;
830
+ /**
831
+ * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns it.
832
+ *
833
+ * @return an `Observable` of the body as an `ArrayBuffer`.
834
+ */
835
+ head(url: string, options: {
836
+ headers?: HttpHeaders | {
837
+ [header: string]: string | string[];
838
+ };
839
+ observe?: 'body';
840
+ params?: HttpParams | {
841
+ [param: string]: string | string[];
842
+ };
843
+ reportProgress?: boolean;
844
+ responseType: 'arraybuffer';
845
+ withCredentials?: boolean;
846
+ }): Observable<ArrayBuffer>;
847
+ head(url: string, options: {
848
+ headers?: HttpHeaders | {
849
+ [header: string]: string | string[];
850
+ };
851
+ observe?: 'body';
852
+ params?: HttpParams | {
853
+ [param: string]: string | string[];
854
+ };
855
+ reportProgress?: boolean;
856
+ responseType: 'blob';
857
+ withCredentials?: boolean;
858
+ }): Observable<Blob>;
859
+ /**
860
+ * Construct a HEAD request which interprets the body as text and returns it.
861
+ *
862
+ * @return an `Observable` of the body as a `string`.
863
+ */
864
+ head(url: string, options: {
865
+ headers?: HttpHeaders | {
866
+ [header: string]: string | string[];
867
+ };
868
+ observe?: 'body';
869
+ params?: HttpParams | {
870
+ [param: string]: string | string[];
871
+ };
872
+ reportProgress?: boolean;
873
+ responseType: 'text';
874
+ withCredentials?: boolean;
875
+ }): Observable<string>;
876
+ /**
877
+ * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full event stream.
878
+ *
879
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
880
+ */
881
+ head(url: string, options: {
882
+ headers?: HttpHeaders | {
883
+ [header: string]: string | string[];
884
+ };
885
+ observe: 'events';
886
+ params?: HttpParams | {
887
+ [param: string]: string | string[];
888
+ };
889
+ reportProgress?: boolean;
890
+ responseType: 'arraybuffer';
891
+ withCredentials?: boolean;
892
+ }): Observable<HttpEvent<ArrayBuffer>>;
893
+ /**
894
+ * Construct a HEAD request which interprets the body as a `Blob` and returns the full event stream.
895
+ *
896
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
897
+ */
898
+ head(url: string, options: {
899
+ headers?: HttpHeaders | {
900
+ [header: string]: string | string[];
901
+ };
902
+ observe: 'events';
903
+ params?: HttpParams | {
904
+ [param: string]: string | string[];
905
+ };
906
+ reportProgress?: boolean;
907
+ responseType: 'blob';
908
+ withCredentials?: boolean;
909
+ }): Observable<HttpEvent<Blob>>;
910
+ /**
911
+ * Construct a HEAD request which interprets the body as text and returns the full event stream.
912
+ *
913
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
914
+ */
915
+ head(url: string, options: {
916
+ headers?: HttpHeaders | {
917
+ [header: string]: string | string[];
918
+ };
919
+ observe: 'events';
920
+ params?: HttpParams | {
921
+ [param: string]: string | string[];
922
+ };
923
+ reportProgress?: boolean;
924
+ responseType: 'text';
925
+ withCredentials?: boolean;
926
+ }): Observable<HttpEvent<string>>;
927
+ /**
928
+ * Construct a HEAD request which interprets the body as JSON and returns the full event stream.
929
+ *
930
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
931
+ */
932
+ head(url: string, options: {
933
+ headers?: HttpHeaders | {
934
+ [header: string]: string | string[];
935
+ };
936
+ observe: 'events';
937
+ params?: HttpParams | {
938
+ [param: string]: string | string[];
939
+ };
940
+ reportProgress?: boolean;
941
+ responseType?: 'json';
942
+ withCredentials?: boolean;
943
+ }): Observable<HttpEvent<Object>>;
944
+ /**
945
+ * Construct a HEAD request which interprets the body as JSON and returns the full event stream.
946
+ *
947
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
948
+ */
949
+ head<T>(url: string, options: {
950
+ headers?: HttpHeaders | {
951
+ [header: string]: string | string[];
952
+ };
953
+ observe: 'events';
954
+ params?: HttpParams | {
955
+ [param: string]: string | string[];
956
+ };
957
+ reportProgress?: boolean;
958
+ responseType?: 'json';
959
+ withCredentials?: boolean;
960
+ }): Observable<HttpEvent<T>>;
961
+ /**
962
+ * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full response.
963
+ *
964
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
965
+ */
966
+ head(url: string, options: {
967
+ headers?: HttpHeaders | {
968
+ [header: string]: string | string[];
969
+ };
970
+ observe: 'response';
971
+ params?: HttpParams | {
972
+ [param: string]: string | string[];
973
+ };
974
+ reportProgress?: boolean;
975
+ responseType: 'arraybuffer';
976
+ withCredentials?: boolean;
977
+ }): Observable<HttpResponse<ArrayBuffer>>;
978
+ /**
979
+ * Construct a HEAD request which interprets the body as a `Blob` and returns the full response.
980
+ *
981
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
982
+ */
983
+ head(url: string, options: {
984
+ headers?: HttpHeaders | {
985
+ [header: string]: string | string[];
986
+ };
987
+ observe: 'response';
988
+ params?: HttpParams | {
989
+ [param: string]: string | string[];
990
+ };
991
+ reportProgress?: boolean;
992
+ responseType: 'blob';
993
+ withCredentials?: boolean;
994
+ }): Observable<HttpResponse<Blob>>;
995
+ /**
996
+ * Construct a HEAD request which interprets the body as text and returns the full response.
997
+ *
998
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
999
+ */
1000
+ head(url: string, options: {
1001
+ headers?: HttpHeaders | {
1002
+ [header: string]: string | string[];
1003
+ };
1004
+ observe: 'response';
1005
+ params?: HttpParams | {
1006
+ [param: string]: string | string[];
1007
+ };
1008
+ reportProgress?: boolean;
1009
+ responseType: 'text';
1010
+ withCredentials?: boolean;
1011
+ }): Observable<HttpResponse<string>>;
1012
+ /**
1013
+ * Construct a HEAD request which interprets the body as JSON and returns the full response.
1014
+ *
1015
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1016
+ */
1017
+ head(url: string, options: {
1018
+ headers?: HttpHeaders | {
1019
+ [header: string]: string | string[];
1020
+ };
1021
+ observe: 'response';
1022
+ params?: HttpParams | {
1023
+ [param: string]: string | string[];
1024
+ };
1025
+ reportProgress?: boolean;
1026
+ responseType?: 'json';
1027
+ withCredentials?: boolean;
1028
+ }): Observable<HttpResponse<Object>>;
1029
+ /**
1030
+ * Construct a HEAD request which interprets the body as JSON and returns the full response.
1031
+ *
1032
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1033
+ */
1034
+ head<T>(url: string, options: {
1035
+ headers?: HttpHeaders | {
1036
+ [header: string]: string | string[];
1037
+ };
1038
+ observe: 'response';
1039
+ params?: HttpParams | {
1040
+ [param: string]: string | string[];
1041
+ };
1042
+ reportProgress?: boolean;
1043
+ responseType?: 'json';
1044
+ withCredentials?: boolean;
1045
+ }): Observable<HttpResponse<T>>;
1046
+ /**
1047
+ * Construct a HEAD request which interprets the body as JSON and returns it.
1048
+ *
1049
+ * @return an `Observable` of the body as an `Object`.
1050
+ */
1051
+ head(url: string, options?: {
1052
+ headers?: HttpHeaders | {
1053
+ [header: string]: string | string[];
1054
+ };
1055
+ observe?: 'body';
1056
+ params?: HttpParams | {
1057
+ [param: string]: string | string[];
1058
+ };
1059
+ reportProgress?: boolean;
1060
+ responseType?: 'json';
1061
+ withCredentials?: boolean;
1062
+ }): Observable<Object>;
1063
+ /**
1064
+ * Construct a HEAD request which interprets the body as JSON and returns it.
1065
+ *
1066
+ * @return an `Observable` of the body as type `T`.
1067
+ */
1068
+ head<T>(url: string, options?: {
1069
+ headers?: HttpHeaders | {
1070
+ [header: string]: string | string[];
1071
+ };
1072
+ observe?: 'body';
1073
+ params?: HttpParams | {
1074
+ [param: string]: string | string[];
1075
+ };
1076
+ reportProgress?: boolean;
1077
+ responseType?: 'json';
1078
+ withCredentials?: boolean;
1079
+ }): Observable<T>;
1080
+ /**
1081
+ * Construct a JSONP request for the given URL and name of the callback parameter.
1082
+ *
1083
+ * @return an `Observable` of the response object as an `Object`
1084
+ */
1085
+ jsonp(url: string, callbackParam: string): Observable<Object>;
1086
+ /**
1087
+ * Construct a JSONP request for the given URL and name of the callback parameter.
1088
+ *
1089
+ * @return an `Observable` of the response object as type `T`.
1090
+ */
1091
+ jsonp<T>(url: string, callbackParam: string): Observable<T>;
1092
+ /**
1093
+ * Make an OPTIONS request which interprets the body as an `ArrayBuffer` and returns it.
1094
+ *
1095
+ * @return an `Observable` of the body as an `ArrayBuffer`.
1096
+ */
1097
+ options(url: string, options: {
1098
+ headers?: HttpHeaders | {
1099
+ [header: string]: string | string[];
1100
+ };
1101
+ observe?: 'body';
1102
+ params?: HttpParams | {
1103
+ [param: string]: string | string[];
1104
+ };
1105
+ reportProgress?: boolean;
1106
+ responseType: 'arraybuffer';
1107
+ withCredentials?: boolean;
1108
+ }): Observable<ArrayBuffer>;
1109
+ /**
1110
+ * Construct an OPTIONS request which interprets the body as a `Blob` and returns it.
1111
+ *
1112
+ * @return an `Observable` of the body as a `Blob`.
1113
+ */
1114
+ options(url: string, options: {
1115
+ headers?: HttpHeaders | {
1116
+ [header: string]: string | string[];
1117
+ };
1118
+ observe?: 'body';
1119
+ params?: HttpParams | {
1120
+ [param: string]: string | string[];
1121
+ };
1122
+ reportProgress?: boolean;
1123
+ responseType: 'blob';
1124
+ withCredentials?: boolean;
1125
+ }): Observable<Blob>;
1126
+ /**
1127
+ * Construct an OPTIONS request which interprets the body as text and returns it.
1128
+ *
1129
+ * @return an `Observable` of the body as a `string`.
1130
+ */
1131
+ options(url: string, options: {
1132
+ headers?: HttpHeaders | {
1133
+ [header: string]: string | string[];
1134
+ };
1135
+ observe?: 'body';
1136
+ params?: HttpParams | {
1137
+ [param: string]: string | string[];
1138
+ };
1139
+ reportProgress?: boolean;
1140
+ responseType: 'text';
1141
+ withCredentials?: boolean;
1142
+ }): Observable<string>;
1143
+ /**
1144
+ * Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1145
+ *
1146
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1147
+ */
1148
+ options(url: string, options: {
1149
+ headers?: HttpHeaders | {
1150
+ [header: string]: string | string[];
1151
+ };
1152
+ observe: 'events';
1153
+ params?: HttpParams | {
1154
+ [param: string]: string | string[];
1155
+ };
1156
+ reportProgress?: boolean;
1157
+ responseType: 'arraybuffer';
1158
+ withCredentials?: boolean;
1159
+ }): Observable<HttpEvent<ArrayBuffer>>;
1160
+ /**
1161
+ * Construct an OPTIONS request which interprets the body as a `Blob` and returns the full event stream.
1162
+ *
1163
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1164
+ */
1165
+ options(url: string, options: {
1166
+ headers?: HttpHeaders | {
1167
+ [header: string]: string | string[];
1168
+ };
1169
+ observe: 'events';
1170
+ params?: HttpParams | {
1171
+ [param: string]: string | string[];
1172
+ };
1173
+ reportProgress?: boolean;
1174
+ responseType: 'blob';
1175
+ withCredentials?: boolean;
1176
+ }): Observable<HttpEvent<Blob>>;
1177
+ /**
1178
+ * Construct an OPTIONS request which interprets the body as text and returns the full event stream.
1179
+ *
1180
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1181
+ */
1182
+ options(url: string, options: {
1183
+ headers?: HttpHeaders | {
1184
+ [header: string]: string | string[];
1185
+ };
1186
+ observe: 'events';
1187
+ params?: HttpParams | {
1188
+ [param: string]: string | string[];
1189
+ };
1190
+ reportProgress?: boolean;
1191
+ responseType: 'text';
1192
+ withCredentials?: boolean;
1193
+ }): Observable<HttpEvent<string>>;
1194
+ /**
1195
+ * Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
1196
+ *
1197
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1198
+ */
1199
+ options(url: string, options: {
1200
+ headers?: HttpHeaders | {
1201
+ [header: string]: string | string[];
1202
+ };
1203
+ observe: 'events';
1204
+ params?: HttpParams | {
1205
+ [param: string]: string | string[];
1206
+ };
1207
+ reportProgress?: boolean;
1208
+ responseType?: 'json';
1209
+ withCredentials?: boolean;
1210
+ }): Observable<HttpEvent<Object>>;
1211
+ /**
1212
+ * Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
1213
+ *
1214
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1215
+ */
1216
+ options<T>(url: string, options: {
1217
+ headers?: HttpHeaders | {
1218
+ [header: string]: string | string[];
1219
+ };
1220
+ observe: 'events';
1221
+ params?: HttpParams | {
1222
+ [param: string]: string | string[];
1223
+ };
1224
+ reportProgress?: boolean;
1225
+ responseType?: 'json';
1226
+ withCredentials?: boolean;
1227
+ }): Observable<HttpEvent<T>>;
1228
+ /**
1229
+ * Construct an OPTIONS request which interprets the body as an `ArrayBuffer` and returns the full response.
1230
+ *
1231
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1232
+ */
1233
+ options(url: string, options: {
1234
+ headers?: HttpHeaders | {
1235
+ [header: string]: string | string[];
1236
+ };
1237
+ observe: 'response';
1238
+ params?: HttpParams | {
1239
+ [param: string]: string | string[];
1240
+ };
1241
+ reportProgress?: boolean;
1242
+ responseType: 'arraybuffer';
1243
+ withCredentials?: boolean;
1244
+ }): Observable<HttpResponse<ArrayBuffer>>;
1245
+ /**
1246
+ * Construct an OPTIONS request which interprets the body as a `Blob` and returns the full response.
1247
+ *
1248
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1249
+ */
1250
+ options(url: string, options: {
1251
+ headers?: HttpHeaders | {
1252
+ [header: string]: string | string[];
1253
+ };
1254
+ observe: 'response';
1255
+ params?: HttpParams | {
1256
+ [param: string]: string | string[];
1257
+ };
1258
+ reportProgress?: boolean;
1259
+ responseType: 'blob';
1260
+ withCredentials?: boolean;
1261
+ }): Observable<HttpResponse<Blob>>;
1262
+ /**
1263
+ * Construct an OPTIONS request which interprets the body as text and returns the full response.
1264
+ *
1265
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1266
+ */
1267
+ options(url: string, options: {
1268
+ headers?: HttpHeaders | {
1269
+ [header: string]: string | string[];
1270
+ };
1271
+ observe: 'response';
1272
+ params?: HttpParams | {
1273
+ [param: string]: string | string[];
1274
+ };
1275
+ reportProgress?: boolean;
1276
+ responseType: 'text';
1277
+ withCredentials?: boolean;
1278
+ }): Observable<HttpResponse<string>>;
1279
+ /**
1280
+ * Construct an OPTIONS request which interprets the body as JSON and returns the full response.
1281
+ *
1282
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1283
+ */
1284
+ options(url: string, options: {
1285
+ headers?: HttpHeaders | {
1286
+ [header: string]: string | string[];
1287
+ };
1288
+ observe: 'response';
1289
+ params?: HttpParams | {
1290
+ [param: string]: string | string[];
1291
+ };
1292
+ reportProgress?: boolean;
1293
+ responseType?: 'json';
1294
+ withCredentials?: boolean;
1295
+ }): Observable<HttpResponse<Object>>;
1296
+ /**
1297
+ * Construct an OPTIONS request which interprets the body as JSON and returns the full response.
1298
+ *
1299
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1300
+ */
1301
+ options<T>(url: string, options: {
1302
+ headers?: HttpHeaders | {
1303
+ [header: string]: string | string[];
1304
+ };
1305
+ observe: 'response';
1306
+ params?: HttpParams | {
1307
+ [param: string]: string | string[];
1308
+ };
1309
+ reportProgress?: boolean;
1310
+ responseType?: 'json';
1311
+ withCredentials?: boolean;
1312
+ }): Observable<HttpResponse<T>>;
1313
+ /**
1314
+ * Construct an OPTIONS request which interprets the body as JSON and returns it.
1315
+ *
1316
+ * @return an `Observable` of the body as an `Object`.
1317
+ */
1318
+ options(url: string, options?: {
1319
+ headers?: HttpHeaders | {
1320
+ [header: string]: string | string[];
1321
+ };
1322
+ observe?: 'body';
1323
+ params?: HttpParams | {
1324
+ [param: string]: string | string[];
1325
+ };
1326
+ reportProgress?: boolean;
1327
+ responseType?: 'json';
1328
+ withCredentials?: boolean;
1329
+ }): Observable<Object>;
1330
+ /**
1331
+ * Construct an OPTIONS request which interprets the body as JSON and returns it.
1332
+ *
1333
+ * @return an `Observable` of the body as type `T`.
1334
+ */
1335
+ options<T>(url: string, options?: {
1336
+ headers?: HttpHeaders | {
1337
+ [header: string]: string | string[];
1338
+ };
1339
+ observe?: 'body';
1340
+ params?: HttpParams | {
1341
+ [param: string]: string | string[];
1342
+ };
1343
+ reportProgress?: boolean;
1344
+ responseType?: 'json';
1345
+ withCredentials?: boolean;
1346
+ }): Observable<T>;
1347
+ /**
1348
+ * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns it.
1349
+ *
1350
+ * @return an `Observable` of the body as an `ArrayBuffer`.
1351
+ */
1352
+ patch(url: string, body: any | null, options: {
1353
+ headers?: HttpHeaders | {
1354
+ [header: string]: string | string[];
1355
+ };
1356
+ observe?: 'body';
1357
+ params?: HttpParams | {
1358
+ [param: string]: string | string[];
1359
+ };
1360
+ reportProgress?: boolean;
1361
+ responseType: 'arraybuffer';
1362
+ withCredentials?: boolean;
1363
+ }): Observable<ArrayBuffer>;
1364
+ /**
1365
+ * Construct a PATCH request which interprets the body as a `Blob` and returns it.
1366
+ *
1367
+ * @return an `Observable` of the body as a `Blob`.
1368
+ */
1369
+ patch(url: string, body: any | null, options: {
1370
+ headers?: HttpHeaders | {
1371
+ [header: string]: string | string[];
1372
+ };
1373
+ observe?: 'body';
1374
+ params?: HttpParams | {
1375
+ [param: string]: string | string[];
1376
+ };
1377
+ reportProgress?: boolean;
1378
+ responseType: 'blob';
1379
+ withCredentials?: boolean;
1380
+ }): Observable<Blob>;
1381
+ /**
1382
+ * Construct a PATCH request which interprets the body as text and returns it.
1383
+ *
1384
+ * @return an `Observable` of the body as a `string`.
1385
+ */
1386
+ patch(url: string, body: any | null, options: {
1387
+ headers?: HttpHeaders | {
1388
+ [header: string]: string | string[];
1389
+ };
1390
+ observe?: 'body';
1391
+ params?: HttpParams | {
1392
+ [param: string]: string | string[];
1393
+ };
1394
+ reportProgress?: boolean;
1395
+ responseType: 'text';
1396
+ withCredentials?: boolean;
1397
+ }): Observable<string>;
1398
+ /**
1399
+ * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1400
+ *
1401
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1402
+ */
1403
+ patch(url: string, body: any | null, options: {
1404
+ headers?: HttpHeaders | {
1405
+ [header: string]: string | string[];
1406
+ };
1407
+ observe: 'events';
1408
+ params?: HttpParams | {
1409
+ [param: string]: string | string[];
1410
+ };
1411
+ reportProgress?: boolean;
1412
+ responseType: 'arraybuffer';
1413
+ withCredentials?: boolean;
1414
+ }): Observable<HttpEvent<ArrayBuffer>>;
1415
+ /**
1416
+ * Construct a PATCH request which interprets the body as a `Blob` and returns the full event stream.
1417
+ *
1418
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1419
+ */
1420
+ patch(url: string, body: any | null, options: {
1421
+ headers?: HttpHeaders | {
1422
+ [header: string]: string | string[];
1423
+ };
1424
+ observe: 'events';
1425
+ params?: HttpParams | {
1426
+ [param: string]: string | string[];
1427
+ };
1428
+ reportProgress?: boolean;
1429
+ responseType: 'blob';
1430
+ withCredentials?: boolean;
1431
+ }): Observable<HttpEvent<Blob>>;
1432
+ /**
1433
+ * Construct a PATCH request which interprets the body as text and returns the full event stream.
1434
+ *
1435
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1436
+ */
1437
+ patch(url: string, body: any | null, options: {
1438
+ headers?: HttpHeaders | {
1439
+ [header: string]: string | string[];
1440
+ };
1441
+ observe: 'events';
1442
+ params?: HttpParams | {
1443
+ [param: string]: string | string[];
1444
+ };
1445
+ reportProgress?: boolean;
1446
+ responseType: 'text';
1447
+ withCredentials?: boolean;
1448
+ }): Observable<HttpEvent<string>>;
1449
+ /**
1450
+ * Construct a PATCH request which interprets the body as JSON and returns the full event stream.
1451
+ *
1452
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1453
+ */
1454
+ patch(url: string, body: any | null, options: {
1455
+ headers?: HttpHeaders | {
1456
+ [header: string]: string | string[];
1457
+ };
1458
+ observe: 'events';
1459
+ params?: HttpParams | {
1460
+ [param: string]: string | string[];
1461
+ };
1462
+ reportProgress?: boolean;
1463
+ responseType?: 'json';
1464
+ withCredentials?: boolean;
1465
+ }): Observable<HttpEvent<Object>>;
1466
+ /**
1467
+ * Construct a PATCH request which interprets the body as JSON and returns the full event stream.
1468
+ *
1469
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1470
+ */
1471
+ patch<T>(url: string, body: any | null, options: {
1472
+ headers?: HttpHeaders | {
1473
+ [header: string]: string | string[];
1474
+ };
1475
+ observe: 'events';
1476
+ params?: HttpParams | {
1477
+ [param: string]: string | string[];
1478
+ };
1479
+ reportProgress?: boolean;
1480
+ responseType?: 'json';
1481
+ withCredentials?: boolean;
1482
+ }): Observable<HttpEvent<T>>;
1483
+ /**
1484
+ * Construct a PATCH request which interprets the body as an `ArrayBuffer` and returns the full response.
1485
+ *
1486
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1487
+ */
1488
+ patch(url: string, body: any | null, options: {
1489
+ headers?: HttpHeaders | {
1490
+ [header: string]: string | string[];
1491
+ };
1492
+ observe: 'response';
1493
+ params?: HttpParams | {
1494
+ [param: string]: string | string[];
1495
+ };
1496
+ reportProgress?: boolean;
1497
+ responseType: 'arraybuffer';
1498
+ withCredentials?: boolean;
1499
+ }): Observable<HttpResponse<ArrayBuffer>>;
1500
+ /**
1501
+ * Construct a PATCH request which interprets the body as a `Blob` and returns the full response.
1502
+ *
1503
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1504
+ */
1505
+ patch(url: string, body: any | null, options: {
1506
+ headers?: HttpHeaders | {
1507
+ [header: string]: string | string[];
1508
+ };
1509
+ observe: 'response';
1510
+ params?: HttpParams | {
1511
+ [param: string]: string | string[];
1512
+ };
1513
+ reportProgress?: boolean;
1514
+ responseType: 'blob';
1515
+ withCredentials?: boolean;
1516
+ }): Observable<HttpResponse<Blob>>;
1517
+ /**
1518
+ * Construct a PATCH request which interprets the body as text and returns the full response.
1519
+ *
1520
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1521
+ */
1522
+ patch(url: string, body: any | null, options: {
1523
+ headers?: HttpHeaders | {
1524
+ [header: string]: string | string[];
1525
+ };
1526
+ observe: 'response';
1527
+ params?: HttpParams | {
1528
+ [param: string]: string | string[];
1529
+ };
1530
+ reportProgress?: boolean;
1531
+ responseType: 'text';
1532
+ withCredentials?: boolean;
1533
+ }): Observable<HttpResponse<string>>;
1534
+ /**
1535
+ * Construct a PATCH request which interprets the body as JSON and returns the full response.
1536
+ *
1537
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1538
+ */
1539
+ patch(url: string, body: any | null, options: {
1540
+ headers?: HttpHeaders | {
1541
+ [header: string]: string | string[];
1542
+ };
1543
+ observe: 'response';
1544
+ params?: HttpParams | {
1545
+ [param: string]: string | string[];
1546
+ };
1547
+ reportProgress?: boolean;
1548
+ responseType?: 'json';
1549
+ withCredentials?: boolean;
1550
+ }): Observable<HttpResponse<Object>>;
1551
+ /**
1552
+ * Construct a PATCH request which interprets the body as JSON and returns the full response.
1553
+ *
1554
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1555
+ */
1556
+ patch<T>(url: string, body: any | null, options: {
1557
+ headers?: HttpHeaders | {
1558
+ [header: string]: string | string[];
1559
+ };
1560
+ observe: 'response';
1561
+ params?: HttpParams | {
1562
+ [param: string]: string | string[];
1563
+ };
1564
+ reportProgress?: boolean;
1565
+ responseType?: 'json';
1566
+ withCredentials?: boolean;
1567
+ }): Observable<HttpResponse<T>>;
1568
+ /**
1569
+ * Construct a PATCH request which interprets the body as JSON and returns it.
1570
+ *
1571
+ * @return an `Observable` of the body as an `Object`.
1572
+ */
1573
+ patch(url: string, body: any | null, options?: {
1574
+ headers?: HttpHeaders | {
1575
+ [header: string]: string | string[];
1576
+ };
1577
+ observe?: 'body';
1578
+ params?: HttpParams | {
1579
+ [param: string]: string | string[];
1580
+ };
1581
+ reportProgress?: boolean;
1582
+ responseType?: 'json';
1583
+ withCredentials?: boolean;
1584
+ }): Observable<Object>;
1585
+ /**
1586
+ * Construct a PATCH request which interprets the body as JSON and returns it.
1587
+ *
1588
+ * @return an `Observable` of the body as type `T`.
1589
+ */
1590
+ patch<T>(url: string, body: any | null, options?: {
1591
+ headers?: HttpHeaders | {
1592
+ [header: string]: string | string[];
1593
+ };
1594
+ observe?: 'body';
1595
+ params?: HttpParams | {
1596
+ [param: string]: string | string[];
1597
+ };
1598
+ reportProgress?: boolean;
1599
+ responseType?: 'json';
1600
+ withCredentials?: boolean;
1601
+ }): Observable<T>;
1602
+ /**
1603
+ * Construct a POST request which interprets the body as an `ArrayBuffer` and returns it.
1604
+ *
1605
+ * @return an `Observable` of the body as an `ArrayBuffer`.
1606
+ */
1607
+ post(url: string, body: any | null, options: {
1608
+ headers?: HttpHeaders | {
1609
+ [header: string]: string | string[];
1610
+ };
1611
+ observe?: 'body';
1612
+ params?: HttpParams | {
1613
+ [param: string]: string | string[];
1614
+ };
1615
+ reportProgress?: boolean;
1616
+ responseType: 'arraybuffer';
1617
+ withCredentials?: boolean;
1618
+ }): Observable<ArrayBuffer>;
1619
+ /**
1620
+ * Construct a POST request which interprets the body as a `Blob` and returns it.
1621
+ *
1622
+ * @return an `Observable` of the body as a `Blob`.
1623
+ */
1624
+ post(url: string, body: any | null, options: {
1625
+ headers?: HttpHeaders | {
1626
+ [header: string]: string | string[];
1627
+ };
1628
+ observe?: 'body';
1629
+ params?: HttpParams | {
1630
+ [param: string]: string | string[];
1631
+ };
1632
+ reportProgress?: boolean;
1633
+ responseType: 'blob';
1634
+ withCredentials?: boolean;
1635
+ }): Observable<Blob>;
1636
+ /**
1637
+ * Construct a POST request which interprets the body as text and returns it.
1638
+ *
1639
+ * @return an `Observable` of the body as a `string`.
1640
+ */
1641
+ post(url: string, body: any | null, options: {
1642
+ headers?: HttpHeaders | {
1643
+ [header: string]: string | string[];
1644
+ };
1645
+ observe?: 'body';
1646
+ params?: HttpParams | {
1647
+ [param: string]: string | string[];
1648
+ };
1649
+ reportProgress?: boolean;
1650
+ responseType: 'text';
1651
+ withCredentials?: boolean;
1652
+ }): Observable<string>;
1653
+ /**
1654
+ * Construct a POST request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1655
+ *
1656
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1657
+ */
1658
+ post(url: string, body: any | null, options: {
1659
+ headers?: HttpHeaders | {
1660
+ [header: string]: string | string[];
1661
+ };
1662
+ observe: 'events';
1663
+ params?: HttpParams | {
1664
+ [param: string]: string | string[];
1665
+ };
1666
+ reportProgress?: boolean;
1667
+ responseType: 'arraybuffer';
1668
+ withCredentials?: boolean;
1669
+ }): Observable<HttpEvent<ArrayBuffer>>;
1670
+ /**
1671
+ * Construct a POST request which interprets the body as a `Blob` and returns the full event stream.
1672
+ *
1673
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1674
+ */
1675
+ post(url: string, body: any | null, options: {
1676
+ headers?: HttpHeaders | {
1677
+ [header: string]: string | string[];
1678
+ };
1679
+ observe: 'events';
1680
+ params?: HttpParams | {
1681
+ [param: string]: string | string[];
1682
+ };
1683
+ reportProgress?: boolean;
1684
+ responseType: 'blob';
1685
+ withCredentials?: boolean;
1686
+ }): Observable<HttpEvent<Blob>>;
1687
+ /**
1688
+ * Construct a POST request which interprets the body as text and returns the full event stream.
1689
+ *
1690
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1691
+ */
1692
+ post(url: string, body: any | null, options: {
1693
+ headers?: HttpHeaders | {
1694
+ [header: string]: string | string[];
1695
+ };
1696
+ observe: 'events';
1697
+ params?: HttpParams | {
1698
+ [param: string]: string | string[];
1699
+ };
1700
+ reportProgress?: boolean;
1701
+ responseType: 'text';
1702
+ withCredentials?: boolean;
1703
+ }): Observable<HttpEvent<string>>;
1704
+ /**
1705
+ * Construct a POST request which interprets the body as JSON and returns the full event stream.
1706
+ *
1707
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1708
+ */
1709
+ post(url: string, body: any | null, options: {
1710
+ headers?: HttpHeaders | {
1711
+ [header: string]: string | string[];
1712
+ };
1713
+ observe: 'events';
1714
+ params?: HttpParams | {
1715
+ [param: string]: string | string[];
1716
+ };
1717
+ reportProgress?: boolean;
1718
+ responseType?: 'json';
1719
+ withCredentials?: boolean;
1720
+ }): Observable<HttpEvent<Object>>;
1721
+ /**
1722
+ * Construct a POST request which interprets the body as JSON and returns the full event stream.
1723
+ *
1724
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1725
+ */
1726
+ post<T>(url: string, body: any | null, options: {
1727
+ headers?: HttpHeaders | {
1728
+ [header: string]: string | string[];
1729
+ };
1730
+ observe: 'events';
1731
+ params?: HttpParams | {
1732
+ [param: string]: string | string[];
1733
+ };
1734
+ reportProgress?: boolean;
1735
+ responseType?: 'json';
1736
+ withCredentials?: boolean;
1737
+ }): Observable<HttpEvent<T>>;
1738
+ /**
1739
+ * Construct a POST request which interprets the body as an `ArrayBuffer` and returns the full response.
1740
+ *
1741
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1742
+ */
1743
+ post(url: string, body: any | null, options: {
1744
+ headers?: HttpHeaders | {
1745
+ [header: string]: string | string[];
1746
+ };
1747
+ observe: 'response';
1748
+ params?: HttpParams | {
1749
+ [param: string]: string | string[];
1750
+ };
1751
+ reportProgress?: boolean;
1752
+ responseType: 'arraybuffer';
1753
+ withCredentials?: boolean;
1754
+ }): Observable<HttpResponse<ArrayBuffer>>;
1755
+ /**
1756
+ * Construct a POST request which interprets the body as a `Blob` and returns the full response.
1757
+ *
1758
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
1759
+ */
1760
+ post(url: string, body: any | null, options: {
1761
+ headers?: HttpHeaders | {
1762
+ [header: string]: string | string[];
1763
+ };
1764
+ observe: 'response';
1765
+ params?: HttpParams | {
1766
+ [param: string]: string | string[];
1767
+ };
1768
+ reportProgress?: boolean;
1769
+ responseType: 'blob';
1770
+ withCredentials?: boolean;
1771
+ }): Observable<HttpResponse<Blob>>;
1772
+ /**
1773
+ * Construct a POST request which interprets the body as text and returns the full response.
1774
+ *
1775
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
1776
+ */
1777
+ post(url: string, body: any | null, options: {
1778
+ headers?: HttpHeaders | {
1779
+ [header: string]: string | string[];
1780
+ };
1781
+ observe: 'response';
1782
+ params?: HttpParams | {
1783
+ [param: string]: string | string[];
1784
+ };
1785
+ reportProgress?: boolean;
1786
+ responseType: 'text';
1787
+ withCredentials?: boolean;
1788
+ }): Observable<HttpResponse<string>>;
1789
+ /**
1790
+ * Construct a POST request which interprets the body as JSON and returns the full response.
1791
+ *
1792
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
1793
+ */
1794
+ post(url: string, body: any | null, options: {
1795
+ headers?: HttpHeaders | {
1796
+ [header: string]: string | string[];
1797
+ };
1798
+ observe: 'response';
1799
+ params?: HttpParams | {
1800
+ [param: string]: string | string[];
1801
+ };
1802
+ reportProgress?: boolean;
1803
+ responseType?: 'json';
1804
+ withCredentials?: boolean;
1805
+ }): Observable<HttpResponse<Object>>;
1806
+ /**
1807
+ * Construct a POST request which interprets the body as JSON and returns the full response.
1808
+ *
1809
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
1810
+ */
1811
+ post<T>(url: string, body: any | null, options: {
1812
+ headers?: HttpHeaders | {
1813
+ [header: string]: string | string[];
1814
+ };
1815
+ observe: 'response';
1816
+ params?: HttpParams | {
1817
+ [param: string]: string | string[];
1818
+ };
1819
+ reportProgress?: boolean;
1820
+ responseType?: 'json';
1821
+ withCredentials?: boolean;
1822
+ }): Observable<HttpResponse<T>>;
1823
+ /**
1824
+ * Construct a POST request which interprets the body as JSON and returns it.
1825
+ *
1826
+ * @return an `Observable` of the body as an `Object`.
1827
+ */
1828
+ post(url: string, body: any | null, options?: {
1829
+ headers?: HttpHeaders | {
1830
+ [header: string]: string | string[];
1831
+ };
1832
+ observe?: 'body';
1833
+ params?: HttpParams | {
1834
+ [param: string]: string | string[];
1835
+ };
1836
+ reportProgress?: boolean;
1837
+ responseType?: 'json';
1838
+ withCredentials?: boolean;
1839
+ }): Observable<Object>;
1840
+ /**
1841
+ * Construct a POST request which interprets the body as JSON and returns it.
1842
+ *
1843
+ * @return an `Observable` of the body as type `T`.
1844
+ */
1845
+ post<T>(url: string, body: any | null, options?: {
1846
+ headers?: HttpHeaders | {
1847
+ [header: string]: string | string[];
1848
+ };
1849
+ observe?: 'body';
1850
+ params?: HttpParams | {
1851
+ [param: string]: string | string[];
1852
+ };
1853
+ reportProgress?: boolean;
1854
+ responseType?: 'json';
1855
+ withCredentials?: boolean;
1856
+ }): Observable<T>;
1857
+ /**
1858
+ * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns it.
1859
+ *
1860
+ * @return an `Observable` of the body as an `ArrayBuffer`.
1861
+ */
1862
+ put(url: string, body: any | null, options: {
1863
+ headers?: HttpHeaders | {
1864
+ [header: string]: string | string[];
1865
+ };
1866
+ observe?: 'body';
1867
+ params?: HttpParams | {
1868
+ [param: string]: string | string[];
1869
+ };
1870
+ reportProgress?: boolean;
1871
+ responseType: 'arraybuffer';
1872
+ withCredentials?: boolean;
1873
+ }): Observable<ArrayBuffer>;
1874
+ /**
1875
+ * Construct a PUT request which interprets the body as a `Blob` and returns it.
1876
+ *
1877
+ * @return an `Observable` of the body as a `Blob`.
1878
+ */
1879
+ put(url: string, body: any | null, options: {
1880
+ headers?: HttpHeaders | {
1881
+ [header: string]: string | string[];
1882
+ };
1883
+ observe?: 'body';
1884
+ params?: HttpParams | {
1885
+ [param: string]: string | string[];
1886
+ };
1887
+ reportProgress?: boolean;
1888
+ responseType: 'blob';
1889
+ withCredentials?: boolean;
1890
+ }): Observable<Blob>;
1891
+ /**
1892
+ * Construct a PUT request which interprets the body as text and returns it.
1893
+ *
1894
+ * @return an `Observable` of the body as a `string`.
1895
+ */
1896
+ put(url: string, body: any | null, options: {
1897
+ headers?: HttpHeaders | {
1898
+ [header: string]: string | string[];
1899
+ };
1900
+ observe?: 'body';
1901
+ params?: HttpParams | {
1902
+ [param: string]: string | string[];
1903
+ };
1904
+ reportProgress?: boolean;
1905
+ responseType: 'text';
1906
+ withCredentials?: boolean;
1907
+ }): Observable<string>;
1908
+ /**
1909
+ * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full event stream.
1910
+ *
1911
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`.
1912
+ */
1913
+ put(url: string, body: any | null, options: {
1914
+ headers?: HttpHeaders | {
1915
+ [header: string]: string | string[];
1916
+ };
1917
+ observe: 'events';
1918
+ params?: HttpParams | {
1919
+ [param: string]: string | string[];
1920
+ };
1921
+ reportProgress?: boolean;
1922
+ responseType: 'arraybuffer';
1923
+ withCredentials?: boolean;
1924
+ }): Observable<HttpEvent<ArrayBuffer>>;
1925
+ /**
1926
+ * Construct a PUT request which interprets the body as a `Blob` and returns the full event stream.
1927
+ *
1928
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`.
1929
+ */
1930
+ put(url: string, body: any | null, options: {
1931
+ headers?: HttpHeaders | {
1932
+ [header: string]: string | string[];
1933
+ };
1934
+ observe: 'events';
1935
+ params?: HttpParams | {
1936
+ [param: string]: string | string[];
1937
+ };
1938
+ reportProgress?: boolean;
1939
+ responseType: 'blob';
1940
+ withCredentials?: boolean;
1941
+ }): Observable<HttpEvent<Blob>>;
1942
+ /**
1943
+ * Construct a PUT request which interprets the body as text and returns the full event stream.
1944
+ *
1945
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`.
1946
+ */
1947
+ put(url: string, body: any | null, options: {
1948
+ headers?: HttpHeaders | {
1949
+ [header: string]: string | string[];
1950
+ };
1951
+ observe: 'events';
1952
+ params?: HttpParams | {
1953
+ [param: string]: string | string[];
1954
+ };
1955
+ reportProgress?: boolean;
1956
+ responseType: 'text';
1957
+ withCredentials?: boolean;
1958
+ }): Observable<HttpEvent<string>>;
1959
+ /**
1960
+ * Construct a PUT request which interprets the body as JSON and returns the full event stream.
1961
+ *
1962
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`.
1963
+ */
1964
+ put(url: string, body: any | null, options: {
1965
+ headers?: HttpHeaders | {
1966
+ [header: string]: string | string[];
1967
+ };
1968
+ observe: 'events';
1969
+ params?: HttpParams | {
1970
+ [param: string]: string | string[];
1971
+ };
1972
+ reportProgress?: boolean;
1973
+ responseType?: 'json';
1974
+ withCredentials?: boolean;
1975
+ }): Observable<HttpEvent<Object>>;
1976
+ /**
1977
+ * Construct a PUT request which interprets the body as JSON and returns the full event stream.
1978
+ *
1979
+ * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`.
1980
+ */
1981
+ put<T>(url: string, body: any | null, options: {
1982
+ headers?: HttpHeaders | {
1983
+ [header: string]: string | string[];
1984
+ };
1985
+ observe: 'events';
1986
+ responseType?: 'json';
1987
+ withCredentials?: boolean;
1988
+ }): Observable<HttpEvent<T>>;
1989
+ /**
1990
+ * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full response.
1991
+ *
1992
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`.
1993
+ */
1994
+ put(url: string, body: any | null, options: {
1995
+ headers?: HttpHeaders | {
1996
+ [header: string]: string | string[];
1997
+ };
1998
+ observe: 'response';
1999
+ params?: HttpParams | {
2000
+ [param: string]: string | string[];
2001
+ };
2002
+ reportProgress?: boolean;
2003
+ responseType: 'arraybuffer';
2004
+ withCredentials?: boolean;
2005
+ }): Observable<HttpResponse<ArrayBuffer>>;
2006
+ /**
2007
+ * Construct a PUT request which interprets the body as a `Blob` and returns the full response.
2008
+ *
2009
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`.
2010
+ */
2011
+ put(url: string, body: any | null, options: {
2012
+ headers?: HttpHeaders | {
2013
+ [header: string]: string | string[];
2014
+ };
2015
+ observe: 'response';
2016
+ params?: HttpParams | {
2017
+ [param: string]: string | string[];
2018
+ };
2019
+ reportProgress?: boolean;
2020
+ responseType: 'blob';
2021
+ withCredentials?: boolean;
2022
+ }): Observable<HttpResponse<Blob>>;
2023
+ /**
2024
+ * Construct a PUT request which interprets the body as text and returns the full response.
2025
+ *
2026
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`.
2027
+ */
2028
+ put(url: string, body: any | null, options: {
2029
+ headers?: HttpHeaders | {
2030
+ [header: string]: string | string[];
2031
+ };
2032
+ observe: 'response';
2033
+ params?: HttpParams | {
2034
+ [param: string]: string | string[];
2035
+ };
2036
+ reportProgress?: boolean;
2037
+ responseType: 'text';
2038
+ withCredentials?: boolean;
2039
+ }): Observable<HttpResponse<string>>;
2040
+ /**
2041
+ * Construct a PUT request which interprets the body as JSON and returns the full response.
2042
+ *
2043
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`.
2044
+ */
2045
+ put(url: string, body: any | null, options: {
2046
+ headers?: HttpHeaders | {
2047
+ [header: string]: string | string[];
2048
+ };
2049
+ observe: 'response';
2050
+ params?: HttpParams | {
2051
+ [param: string]: string | string[];
2052
+ };
2053
+ reportProgress?: boolean;
2054
+ responseType?: 'json';
2055
+ withCredentials?: boolean;
2056
+ }): Observable<HttpResponse<Object>>;
2057
+ /**
2058
+ * Construct a PUT request which interprets the body as JSON and returns the full response.
2059
+ *
2060
+ * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`.
2061
+ */
2062
+ put<T>(url: string, body: any | null, options: {
2063
+ headers?: HttpHeaders | {
2064
+ [header: string]: string | string[];
2065
+ };
2066
+ observe: 'response';
2067
+ params?: HttpParams | {
2068
+ [param: string]: string | string[];
2069
+ };
2070
+ reportProgress?: boolean;
2071
+ responseType?: 'json';
2072
+ withCredentials?: boolean;
2073
+ }): Observable<HttpResponse<T>>;
2074
+ /**
2075
+ * Construct a PUT request which interprets the body as JSON and returns it.
2076
+ *
2077
+ * @return an `Observable` of the body as an `Object`.
2078
+ */
2079
+ put(url: string, body: any | null, options?: {
2080
+ headers?: HttpHeaders | {
2081
+ [header: string]: string | string[];
2082
+ };
2083
+ observe?: 'body';
2084
+ params?: HttpParams | {
2085
+ [param: string]: string | string[];
2086
+ };
2087
+ reportProgress?: boolean;
2088
+ responseType?: 'json';
2089
+ withCredentials?: boolean;
2090
+ }): Observable<Object>;
2091
+ /**
2092
+ * Construct a PUT request which interprets the body as JSON and returns it.
2093
+ *
2094
+ * @return an `Observable` of the body as type `T`.
2095
+ */
2096
+ put<T>(url: string, body: any | null, options?: {
2097
+ headers?: HttpHeaders | {
2098
+ [header: string]: string | string[];
2099
+ };
2100
+ observe?: 'body';
2101
+ params?: HttpParams | {
2102
+ [param: string]: string | string[];
2103
+ };
2104
+ reportProgress?: boolean;
2105
+ responseType?: 'json';
2106
+ withCredentials?: boolean;
2107
+ }): Observable<T>;
2108
+ }
2109
2109
  //# sourceMappingURL=client.d.ts.map