@ardium-pl/devkit 8.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/fesm2022/ardium-pl-devkit.mjs +3874 -0
- package/fesm2022/ardium-pl-devkit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/click-outside/click-outside.directive.d.ts +14 -0
- package/lib/click-outside/click-outside.module.d.ts +8 -0
- package/lib/click-outside/index.d.ts +2 -0
- package/lib/coercion/array.d.ts +21 -0
- package/lib/coercion/boolean.d.ts +6 -0
- package/lib/coercion/date.d.ts +5 -0
- package/lib/coercion/index.d.ts +4 -0
- package/lib/coercion/number.d.ts +20 -0
- package/lib/dom-boxes/dom-boxes.d.ts +7 -0
- package/lib/dom-boxes/index.d.ts +1 -0
- package/lib/escape-html/escape-html.d.ts +1 -0
- package/lib/escape-html/escape-html.module.d.ts +8 -0
- package/lib/escape-html/escape-html.pipe.d.ts +7 -0
- package/lib/escape-html/index.d.ts +3 -0
- package/lib/file-pipes/file-pipes.defaults.d.ts +8 -0
- package/lib/file-pipes/file-pipes.module.d.ts +10 -0
- package/lib/file-pipes/fileext.pipe.d.ts +39 -0
- package/lib/file-pipes/filename.pipe.d.ts +38 -0
- package/lib/file-pipes/filesize.pipe.d.ts +50 -0
- package/lib/file-pipes/index.d.ts +5 -0
- package/lib/file-system/file-system.service.d.ts +69 -0
- package/lib/file-system/file-system.types.d.ts +186 -0
- package/lib/file-system/index.d.ts +2 -0
- package/lib/find-functions/find-suggestion.d.ts +3 -0
- package/lib/find-functions/index.d.ts +1 -0
- package/lib/forms/index.d.ts +1 -0
- package/lib/forms/track-form-control/index.d.ts +1 -0
- package/lib/forms/track-form-control/track-form-control.d.ts +83 -0
- package/lib/hold/hold.defaults.d.ts +9 -0
- package/lib/hold/hold.directive.d.ts +24 -0
- package/lib/hold/hold.module.d.ts +8 -0
- package/lib/hold/index.d.ts +3 -0
- package/lib/http-service/_types.d.ts +20 -0
- package/lib/http-service/_utils.d.ts +1 -0
- package/lib/http-service/http.service.d.ts +2574 -0
- package/lib/http-service/index.d.ts +1 -0
- package/lib/infinite-scroll/index.d.ts +3 -0
- package/lib/infinite-scroll/infinite-scroll.defaults.d.ts +8 -0
- package/lib/infinite-scroll/infinite-scroll.directive.d.ts +24 -0
- package/lib/infinite-scroll/infinite-scroll.module.d.ts +8 -0
- package/lib/keyboard/index.d.ts +2 -0
- package/lib/keyboard/keyboard.service.d.ts +60 -0
- package/lib/keyboard/keyboard.types.d.ts +13 -0
- package/lib/keyboard/types-internal.d.ts +20 -0
- package/lib/keyboard/utils.d.ts +3 -0
- package/lib/relative-pos/index.d.ts +1 -0
- package/lib/relative-pos/relative-pos.d.ts +24 -0
- package/lib/signals/array/array-signal.d.ts +123 -0
- package/lib/signals/array/index.d.ts +1 -0
- package/lib/signals/counter/counter-signal.d.ts +67 -0
- package/lib/signals/counter/index.d.ts +1 -0
- package/lib/signals/debounced/debounced-signal.d.ts +15 -0
- package/lib/signals/debounced/index.d.ts +1 -0
- package/lib/signals/map/index.d.ts +1 -0
- package/lib/signals/map/map-signal.d.ts +97 -0
- package/lib/signals/persistent/index.d.ts +1 -0
- package/lib/signals/persistent/persistent-signal.d.ts +106 -0
- package/lib/signals/query-param/index.d.ts +1 -0
- package/lib/signals/query-param/query-param-signal.d.ts +35 -0
- package/lib/signals/queue/index.d.ts +1 -0
- package/lib/signals/queue/queue-signal.d.ts +77 -0
- package/lib/signals/set/index.d.ts +1 -0
- package/lib/signals/set/set-signal.d.ts +76 -0
- package/lib/signals/stack/index.d.ts +1 -0
- package/lib/signals/stack/stack-signal.d.ts +77 -0
- package/lib/signals/throttled/index.d.ts +1 -0
- package/lib/signals/throttled/throttled-signal.d.ts +15 -0
- package/lib/signals/tuple/index.d.ts +1 -0
- package/lib/signals/tuple/tuple-signal.d.ts +60 -0
- package/lib/validators/index.d.ts +1 -0
- package/lib/validators/validators.d.ts +612 -0
- package/lib/viewport-observer/index.d.ts +3 -0
- package/lib/viewport-observer/utils.d.ts +15 -0
- package/lib/viewport-observer/viewport-observer-ref.d.ts +47 -0
- package/lib/viewport-observer/viewport-observer.defaults.d.ts +7 -0
- package/lib/viewport-observer/viewport-observer.service.d.ts +23 -0
- package/package.json +30 -0
- package/public-api.d.ts +26 -0
|
@@ -0,0 +1,2574 @@
|
|
|
1
|
+
import { HttpContext, HttpEvent, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DefaultRequestOptions, ObjectHttpParams } from './_types';
|
|
4
|
+
export declare function createHttpService(apiUrl: string, defaultOptions?: DefaultRequestOptions): {
|
|
5
|
+
new (): {
|
|
6
|
+
readonly apiUrl: string;
|
|
7
|
+
/**
|
|
8
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
9
|
+
*
|
|
10
|
+
* @param req The `HttpRequest` object to send.
|
|
11
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
12
|
+
*/
|
|
13
|
+
request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
|
|
14
|
+
/**
|
|
15
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
16
|
+
*
|
|
17
|
+
* @param req The `HttpRequest` object to send.
|
|
18
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
19
|
+
*/
|
|
20
|
+
request<TParams extends ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
21
|
+
body?: any;
|
|
22
|
+
headers?: HttpHeaders | {
|
|
23
|
+
[header: string]: string | string[];
|
|
24
|
+
};
|
|
25
|
+
context?: HttpContext;
|
|
26
|
+
observe?: "body";
|
|
27
|
+
params?: HttpParams | TParams | undefined;
|
|
28
|
+
reportProgress?: boolean;
|
|
29
|
+
responseType: "arraybuffer";
|
|
30
|
+
withCredentials?: boolean;
|
|
31
|
+
transferCache?: {
|
|
32
|
+
includeHeaders?: string[];
|
|
33
|
+
} | boolean;
|
|
34
|
+
}): Observable<ArrayBuffer>;
|
|
35
|
+
/**
|
|
36
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
37
|
+
*
|
|
38
|
+
* @param req The `HttpRequest` object to send.
|
|
39
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
40
|
+
*/
|
|
41
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
42
|
+
body?: any;
|
|
43
|
+
headers?: HttpHeaders | {
|
|
44
|
+
[header: string]: string | string[];
|
|
45
|
+
};
|
|
46
|
+
context?: HttpContext;
|
|
47
|
+
observe?: "body";
|
|
48
|
+
params?: HttpParams | TParams | undefined;
|
|
49
|
+
reportProgress?: boolean;
|
|
50
|
+
responseType: "blob";
|
|
51
|
+
withCredentials?: boolean;
|
|
52
|
+
transferCache?: {
|
|
53
|
+
includeHeaders?: string[];
|
|
54
|
+
} | boolean;
|
|
55
|
+
}): Observable<Blob>;
|
|
56
|
+
/**
|
|
57
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
58
|
+
*
|
|
59
|
+
* @param req The `HttpRequest` object to send.
|
|
60
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
61
|
+
*/
|
|
62
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
63
|
+
body?: any;
|
|
64
|
+
headers?: HttpHeaders | {
|
|
65
|
+
[header: string]: string | string[];
|
|
66
|
+
};
|
|
67
|
+
context?: HttpContext;
|
|
68
|
+
observe?: "body";
|
|
69
|
+
params?: HttpParams | TParams | undefined;
|
|
70
|
+
reportProgress?: boolean;
|
|
71
|
+
responseType: "text";
|
|
72
|
+
withCredentials?: boolean;
|
|
73
|
+
transferCache?: {
|
|
74
|
+
includeHeaders?: string[];
|
|
75
|
+
} | boolean;
|
|
76
|
+
}): Observable<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
79
|
+
*
|
|
80
|
+
* @param req The `HttpRequest` object to send.
|
|
81
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
82
|
+
*/
|
|
83
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
84
|
+
body?: any;
|
|
85
|
+
headers?: HttpHeaders | {
|
|
86
|
+
[header: string]: string | string[];
|
|
87
|
+
};
|
|
88
|
+
observe: "events";
|
|
89
|
+
context?: HttpContext;
|
|
90
|
+
params?: HttpParams | TParams | undefined;
|
|
91
|
+
reportProgress?: boolean;
|
|
92
|
+
responseType: "arraybuffer";
|
|
93
|
+
withCredentials?: boolean;
|
|
94
|
+
transferCache?: {
|
|
95
|
+
includeHeaders?: string[];
|
|
96
|
+
} | boolean;
|
|
97
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
98
|
+
/**
|
|
99
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
100
|
+
*
|
|
101
|
+
* @param req The `HttpRequest` object to send.
|
|
102
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
103
|
+
*/
|
|
104
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
105
|
+
body?: any;
|
|
106
|
+
headers?: HttpHeaders | {
|
|
107
|
+
[header: string]: string | string[];
|
|
108
|
+
};
|
|
109
|
+
observe: "events";
|
|
110
|
+
context?: HttpContext;
|
|
111
|
+
params?: HttpParams | TParams | undefined;
|
|
112
|
+
reportProgress?: boolean;
|
|
113
|
+
responseType: "blob";
|
|
114
|
+
withCredentials?: boolean;
|
|
115
|
+
transferCache?: {
|
|
116
|
+
includeHeaders?: string[];
|
|
117
|
+
} | boolean;
|
|
118
|
+
}): Observable<HttpEvent<Blob>>;
|
|
119
|
+
/**
|
|
120
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
121
|
+
*
|
|
122
|
+
* @param req The `HttpRequest` object to send.
|
|
123
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
124
|
+
*/
|
|
125
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
126
|
+
body?: any;
|
|
127
|
+
headers?: HttpHeaders | {
|
|
128
|
+
[header: string]: string | string[];
|
|
129
|
+
};
|
|
130
|
+
observe: "events";
|
|
131
|
+
context?: HttpContext;
|
|
132
|
+
params?: HttpParams | TParams | undefined;
|
|
133
|
+
reportProgress?: boolean;
|
|
134
|
+
responseType: "text";
|
|
135
|
+
withCredentials?: boolean;
|
|
136
|
+
transferCache?: {
|
|
137
|
+
includeHeaders?: string[];
|
|
138
|
+
} | boolean;
|
|
139
|
+
}): Observable<HttpEvent<string>>;
|
|
140
|
+
/**
|
|
141
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
142
|
+
*
|
|
143
|
+
* @param req The `HttpRequest` object to send.
|
|
144
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
145
|
+
*/
|
|
146
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
147
|
+
body?: any;
|
|
148
|
+
headers?: HttpHeaders | {
|
|
149
|
+
[header: string]: string | string[];
|
|
150
|
+
};
|
|
151
|
+
context?: HttpContext;
|
|
152
|
+
reportProgress?: boolean;
|
|
153
|
+
observe: "events";
|
|
154
|
+
params?: HttpParams | TParams | undefined;
|
|
155
|
+
responseType?: "json";
|
|
156
|
+
withCredentials?: boolean;
|
|
157
|
+
transferCache?: {
|
|
158
|
+
includeHeaders?: string[];
|
|
159
|
+
} | boolean;
|
|
160
|
+
}): Observable<HttpEvent<any>>;
|
|
161
|
+
/**
|
|
162
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
163
|
+
*
|
|
164
|
+
* @param req The `HttpRequest` object to send.
|
|
165
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
166
|
+
*/
|
|
167
|
+
request<R, TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
168
|
+
body?: any;
|
|
169
|
+
headers?: HttpHeaders | {
|
|
170
|
+
[header: string]: string | string[];
|
|
171
|
+
};
|
|
172
|
+
context?: HttpContext;
|
|
173
|
+
reportProgress?: boolean;
|
|
174
|
+
observe: "events";
|
|
175
|
+
params?: HttpParams | TParams | undefined;
|
|
176
|
+
responseType?: "json";
|
|
177
|
+
withCredentials?: boolean;
|
|
178
|
+
transferCache?: {
|
|
179
|
+
includeHeaders?: string[];
|
|
180
|
+
} | boolean;
|
|
181
|
+
}): Observable<HttpEvent<R>>;
|
|
182
|
+
/**
|
|
183
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
184
|
+
*
|
|
185
|
+
* @param req The `HttpRequest` object to send.
|
|
186
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
187
|
+
*/
|
|
188
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
189
|
+
body?: any;
|
|
190
|
+
headers?: HttpHeaders | {
|
|
191
|
+
[header: string]: string | string[];
|
|
192
|
+
};
|
|
193
|
+
observe: "response";
|
|
194
|
+
context?: HttpContext;
|
|
195
|
+
params?: HttpParams | TParams | undefined;
|
|
196
|
+
reportProgress?: boolean;
|
|
197
|
+
responseType: "arraybuffer";
|
|
198
|
+
withCredentials?: boolean;
|
|
199
|
+
transferCache?: {
|
|
200
|
+
includeHeaders?: string[];
|
|
201
|
+
} | boolean;
|
|
202
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
203
|
+
/**
|
|
204
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
205
|
+
*
|
|
206
|
+
* @param req The `HttpRequest` object to send.
|
|
207
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
208
|
+
*/
|
|
209
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
210
|
+
body?: any;
|
|
211
|
+
headers?: HttpHeaders | {
|
|
212
|
+
[header: string]: string | string[];
|
|
213
|
+
};
|
|
214
|
+
observe: "response";
|
|
215
|
+
context?: HttpContext;
|
|
216
|
+
params?: HttpParams | TParams | undefined;
|
|
217
|
+
reportProgress?: boolean;
|
|
218
|
+
responseType: "blob";
|
|
219
|
+
withCredentials?: boolean;
|
|
220
|
+
transferCache?: {
|
|
221
|
+
includeHeaders?: string[];
|
|
222
|
+
} | boolean;
|
|
223
|
+
}): Observable<HttpResponse<Blob>>;
|
|
224
|
+
/**
|
|
225
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
226
|
+
*
|
|
227
|
+
* @param req The `HttpRequest` object to send.
|
|
228
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
229
|
+
*/
|
|
230
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
231
|
+
body?: any;
|
|
232
|
+
headers?: HttpHeaders | {
|
|
233
|
+
[header: string]: string | string[];
|
|
234
|
+
};
|
|
235
|
+
observe: "response";
|
|
236
|
+
context?: HttpContext;
|
|
237
|
+
params?: HttpParams | TParams | undefined;
|
|
238
|
+
reportProgress?: boolean;
|
|
239
|
+
responseType: "text";
|
|
240
|
+
withCredentials?: boolean;
|
|
241
|
+
transferCache?: {
|
|
242
|
+
includeHeaders?: string[];
|
|
243
|
+
} | boolean;
|
|
244
|
+
}): Observable<HttpResponse<string>>;
|
|
245
|
+
/**
|
|
246
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
247
|
+
*
|
|
248
|
+
* @param req The `HttpRequest` object to send.
|
|
249
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
250
|
+
*/
|
|
251
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
252
|
+
body?: any;
|
|
253
|
+
headers?: HttpHeaders | {
|
|
254
|
+
[header: string]: string | string[];
|
|
255
|
+
};
|
|
256
|
+
context?: HttpContext;
|
|
257
|
+
reportProgress?: boolean;
|
|
258
|
+
observe: "response";
|
|
259
|
+
params?: HttpParams | TParams | undefined;
|
|
260
|
+
responseType?: "json";
|
|
261
|
+
withCredentials?: boolean;
|
|
262
|
+
}): Observable<HttpResponse<Object>>;
|
|
263
|
+
/**
|
|
264
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
265
|
+
*
|
|
266
|
+
* @param req The `HttpRequest` object to send.
|
|
267
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
268
|
+
*/
|
|
269
|
+
request<R, TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options: {
|
|
270
|
+
body?: any;
|
|
271
|
+
headers?: HttpHeaders | {
|
|
272
|
+
[header: string]: string | string[];
|
|
273
|
+
};
|
|
274
|
+
context?: HttpContext;
|
|
275
|
+
reportProgress?: boolean;
|
|
276
|
+
observe: "response";
|
|
277
|
+
params?: HttpParams | TParams | undefined;
|
|
278
|
+
responseType?: "json";
|
|
279
|
+
withCredentials?: boolean;
|
|
280
|
+
transferCache?: {
|
|
281
|
+
includeHeaders?: string[];
|
|
282
|
+
} | boolean;
|
|
283
|
+
}): Observable<HttpResponse<R>>;
|
|
284
|
+
/**
|
|
285
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
286
|
+
*
|
|
287
|
+
* @param req The `HttpRequest` object to send.
|
|
288
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
289
|
+
*/
|
|
290
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options?: {
|
|
291
|
+
body?: any;
|
|
292
|
+
headers?: HttpHeaders | {
|
|
293
|
+
[header: string]: string | string[];
|
|
294
|
+
};
|
|
295
|
+
context?: HttpContext;
|
|
296
|
+
observe?: "body";
|
|
297
|
+
params?: HttpParams | TParams | undefined;
|
|
298
|
+
responseType?: "json";
|
|
299
|
+
reportProgress?: boolean;
|
|
300
|
+
withCredentials?: boolean;
|
|
301
|
+
transferCache?: {
|
|
302
|
+
includeHeaders?: string[];
|
|
303
|
+
} | boolean;
|
|
304
|
+
} | undefined): Observable<Object>;
|
|
305
|
+
/**
|
|
306
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
307
|
+
*
|
|
308
|
+
* @param req The `HttpRequest` object to send.
|
|
309
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
310
|
+
*/
|
|
311
|
+
request<R, TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options?: {
|
|
312
|
+
body?: any;
|
|
313
|
+
headers?: HttpHeaders | {
|
|
314
|
+
[header: string]: string | string[];
|
|
315
|
+
};
|
|
316
|
+
context?: HttpContext;
|
|
317
|
+
observe?: "body";
|
|
318
|
+
params?: HttpParams | TParams | undefined;
|
|
319
|
+
responseType?: "json";
|
|
320
|
+
reportProgress?: boolean;
|
|
321
|
+
withCredentials?: boolean;
|
|
322
|
+
transferCache?: {
|
|
323
|
+
includeHeaders?: string[];
|
|
324
|
+
} | boolean;
|
|
325
|
+
} | undefined): Observable<R>;
|
|
326
|
+
/**
|
|
327
|
+
* Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
|
|
328
|
+
*
|
|
329
|
+
* @param req The `HttpRequest` object to send.
|
|
330
|
+
* @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
|
|
331
|
+
*/
|
|
332
|
+
request<TParams extends ObjectHttpParams = ObjectHttpParams>(method: string, url: string | string[], options?: {
|
|
333
|
+
body?: any;
|
|
334
|
+
headers?: HttpHeaders | {
|
|
335
|
+
[header: string]: string | string[];
|
|
336
|
+
};
|
|
337
|
+
context?: HttpContext;
|
|
338
|
+
params?: HttpParams | TParams | undefined;
|
|
339
|
+
observe?: "body" | "events" | "response";
|
|
340
|
+
reportProgress?: boolean;
|
|
341
|
+
responseType?: "arraybuffer" | "blob" | "json" | "text";
|
|
342
|
+
withCredentials?: boolean;
|
|
343
|
+
transferCache?: {
|
|
344
|
+
includeHeaders?: string[];
|
|
345
|
+
} | boolean;
|
|
346
|
+
} | undefined): Observable<any>;
|
|
347
|
+
/**
|
|
348
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
349
|
+
* and returns the response as an `ArrayBuffer`.
|
|
350
|
+
*
|
|
351
|
+
* @param url The endpoint URL.
|
|
352
|
+
* @param options The HTTP options to send with the request.
|
|
353
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
354
|
+
*/
|
|
355
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
356
|
+
headers?: HttpHeaders | {
|
|
357
|
+
[header: string]: string | string[];
|
|
358
|
+
};
|
|
359
|
+
context?: HttpContext;
|
|
360
|
+
observe?: "body";
|
|
361
|
+
params?: HttpParams | TParams | undefined;
|
|
362
|
+
reportProgress?: boolean;
|
|
363
|
+
responseType: "arraybuffer";
|
|
364
|
+
withCredentials?: boolean;
|
|
365
|
+
body?: any | null;
|
|
366
|
+
}): Observable<ArrayBuffer>;
|
|
367
|
+
/**
|
|
368
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
369
|
+
* and returns the response as an `ArrayBuffer`.
|
|
370
|
+
*
|
|
371
|
+
* @param url The endpoint URL.
|
|
372
|
+
* @param options The HTTP options to send with the request.
|
|
373
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
374
|
+
*/
|
|
375
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
376
|
+
headers?: HttpHeaders | {
|
|
377
|
+
[header: string]: string | string[];
|
|
378
|
+
};
|
|
379
|
+
context?: HttpContext;
|
|
380
|
+
observe?: "body";
|
|
381
|
+
params?: HttpParams | TParams | undefined;
|
|
382
|
+
reportProgress?: boolean;
|
|
383
|
+
responseType: "blob";
|
|
384
|
+
withCredentials?: boolean;
|
|
385
|
+
body?: any | null;
|
|
386
|
+
}): Observable<Blob>;
|
|
387
|
+
/**
|
|
388
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
389
|
+
* and returns the response as an `ArrayBuffer`.
|
|
390
|
+
*
|
|
391
|
+
* @param url The endpoint URL.
|
|
392
|
+
* @param options The HTTP options to send with the request.
|
|
393
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
394
|
+
*/
|
|
395
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
396
|
+
headers?: HttpHeaders | {
|
|
397
|
+
[header: string]: string | string[];
|
|
398
|
+
};
|
|
399
|
+
context?: HttpContext;
|
|
400
|
+
observe?: "body";
|
|
401
|
+
params?: HttpParams | TParams | undefined;
|
|
402
|
+
reportProgress?: boolean;
|
|
403
|
+
responseType: "text";
|
|
404
|
+
withCredentials?: boolean;
|
|
405
|
+
body?: any | null;
|
|
406
|
+
}): Observable<string>;
|
|
407
|
+
/**
|
|
408
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
409
|
+
* and returns the response as an `ArrayBuffer`.
|
|
410
|
+
*
|
|
411
|
+
* @param url The endpoint URL.
|
|
412
|
+
* @param options The HTTP options to send with the request.
|
|
413
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
414
|
+
*/
|
|
415
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
416
|
+
headers?: HttpHeaders | {
|
|
417
|
+
[header: string]: string | string[];
|
|
418
|
+
};
|
|
419
|
+
observe: "events";
|
|
420
|
+
context?: HttpContext;
|
|
421
|
+
params?: HttpParams | TParams | undefined;
|
|
422
|
+
reportProgress?: boolean;
|
|
423
|
+
responseType: "arraybuffer";
|
|
424
|
+
withCredentials?: boolean;
|
|
425
|
+
body?: any | null;
|
|
426
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
427
|
+
/**
|
|
428
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
429
|
+
* and returns the response as an `ArrayBuffer`.
|
|
430
|
+
*
|
|
431
|
+
* @param url The endpoint URL.
|
|
432
|
+
* @param options The HTTP options to send with the request.
|
|
433
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
434
|
+
*/
|
|
435
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
436
|
+
headers?: HttpHeaders | {
|
|
437
|
+
[header: string]: string | string[];
|
|
438
|
+
};
|
|
439
|
+
observe: "events";
|
|
440
|
+
context?: HttpContext;
|
|
441
|
+
params?: HttpParams | TParams | undefined;
|
|
442
|
+
reportProgress?: boolean;
|
|
443
|
+
responseType: "blob";
|
|
444
|
+
withCredentials?: boolean;
|
|
445
|
+
body?: any | null;
|
|
446
|
+
}): Observable<HttpEvent<Blob>>;
|
|
447
|
+
/**
|
|
448
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
449
|
+
* and returns the response as an `ArrayBuffer`.
|
|
450
|
+
*
|
|
451
|
+
* @param url The endpoint URL.
|
|
452
|
+
* @param options The HTTP options to send with the request.
|
|
453
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
454
|
+
*/
|
|
455
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
456
|
+
headers?: HttpHeaders | {
|
|
457
|
+
[header: string]: string | string[];
|
|
458
|
+
};
|
|
459
|
+
observe: "events";
|
|
460
|
+
context?: HttpContext;
|
|
461
|
+
params?: HttpParams | TParams | undefined;
|
|
462
|
+
reportProgress?: boolean;
|
|
463
|
+
responseType: "text";
|
|
464
|
+
withCredentials?: boolean;
|
|
465
|
+
body?: any | null;
|
|
466
|
+
}): Observable<HttpEvent<string>>;
|
|
467
|
+
/**
|
|
468
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
469
|
+
* and returns the response as an `ArrayBuffer`.
|
|
470
|
+
*
|
|
471
|
+
* @param url The endpoint URL.
|
|
472
|
+
* @param options The HTTP options to send with the request.
|
|
473
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
474
|
+
*/
|
|
475
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
476
|
+
headers?: HttpHeaders | {
|
|
477
|
+
[header: string]: string | string[];
|
|
478
|
+
};
|
|
479
|
+
observe: "events";
|
|
480
|
+
context?: HttpContext;
|
|
481
|
+
params?: HttpParams | TParams | undefined;
|
|
482
|
+
reportProgress?: boolean;
|
|
483
|
+
responseType?: "json";
|
|
484
|
+
withCredentials?: boolean;
|
|
485
|
+
body?: any | null;
|
|
486
|
+
}): Observable<HttpEvent<Object>>;
|
|
487
|
+
/**
|
|
488
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
489
|
+
* and returns the response as an `ArrayBuffer`.
|
|
490
|
+
*
|
|
491
|
+
* @param url The endpoint URL.
|
|
492
|
+
* @param options The HTTP options to send with the request.
|
|
493
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
494
|
+
*/
|
|
495
|
+
delete<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
496
|
+
headers?: HttpHeaders | {
|
|
497
|
+
[header: string]: string | string[];
|
|
498
|
+
};
|
|
499
|
+
observe: "events";
|
|
500
|
+
context?: HttpContext;
|
|
501
|
+
params?: HttpParams | {
|
|
502
|
+
[param: string]: string | number | boolean | (string | number | boolean)[];
|
|
503
|
+
};
|
|
504
|
+
reportProgress?: boolean;
|
|
505
|
+
responseType?: "json";
|
|
506
|
+
withCredentials?: boolean;
|
|
507
|
+
body?: any | null;
|
|
508
|
+
}): Observable<HttpEvent<TRes>>;
|
|
509
|
+
/**
|
|
510
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
511
|
+
* and returns the response as an `ArrayBuffer`.
|
|
512
|
+
*
|
|
513
|
+
* @param url The endpoint URL.
|
|
514
|
+
* @param options The HTTP options to send with the request.
|
|
515
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
516
|
+
*/
|
|
517
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
518
|
+
headers?: HttpHeaders | {
|
|
519
|
+
[header: string]: string | string[];
|
|
520
|
+
};
|
|
521
|
+
observe: "response";
|
|
522
|
+
context?: HttpContext;
|
|
523
|
+
params?: HttpParams | TParams | undefined;
|
|
524
|
+
reportProgress?: boolean;
|
|
525
|
+
responseType: "arraybuffer";
|
|
526
|
+
withCredentials?: boolean;
|
|
527
|
+
body?: any | null;
|
|
528
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
529
|
+
/**
|
|
530
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
531
|
+
* and returns the response as an `ArrayBuffer`.
|
|
532
|
+
*
|
|
533
|
+
* @param url The endpoint URL.
|
|
534
|
+
* @param options The HTTP options to send with the request.
|
|
535
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
536
|
+
*/
|
|
537
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
538
|
+
headers?: HttpHeaders | {
|
|
539
|
+
[header: string]: string | string[];
|
|
540
|
+
};
|
|
541
|
+
observe: "response";
|
|
542
|
+
context?: HttpContext;
|
|
543
|
+
params?: HttpParams | TParams | undefined;
|
|
544
|
+
reportProgress?: boolean;
|
|
545
|
+
responseType: "blob";
|
|
546
|
+
withCredentials?: boolean;
|
|
547
|
+
body?: any | null;
|
|
548
|
+
}): Observable<HttpResponse<Blob>>;
|
|
549
|
+
/**
|
|
550
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
551
|
+
* and returns the response as an `ArrayBuffer`.
|
|
552
|
+
*
|
|
553
|
+
* @param url The endpoint URL.
|
|
554
|
+
* @param options The HTTP options to send with the request.
|
|
555
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
556
|
+
*/
|
|
557
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
558
|
+
headers?: HttpHeaders | {
|
|
559
|
+
[header: string]: string | string[];
|
|
560
|
+
};
|
|
561
|
+
observe: "response";
|
|
562
|
+
context?: HttpContext;
|
|
563
|
+
params?: HttpParams | TParams | undefined;
|
|
564
|
+
reportProgress?: boolean;
|
|
565
|
+
responseType: "text";
|
|
566
|
+
withCredentials?: boolean;
|
|
567
|
+
body?: any | null;
|
|
568
|
+
}): Observable<HttpResponse<string>>;
|
|
569
|
+
/**
|
|
570
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
571
|
+
* and returns the response as an `ArrayBuffer`.
|
|
572
|
+
*
|
|
573
|
+
* @param url The endpoint URL.
|
|
574
|
+
* @param options The HTTP options to send with the request.
|
|
575
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
576
|
+
*/
|
|
577
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
578
|
+
headers?: HttpHeaders | {
|
|
579
|
+
[header: string]: string | string[];
|
|
580
|
+
};
|
|
581
|
+
observe: "response";
|
|
582
|
+
context?: HttpContext;
|
|
583
|
+
params?: HttpParams | TParams | undefined;
|
|
584
|
+
reportProgress?: boolean;
|
|
585
|
+
responseType?: "json";
|
|
586
|
+
withCredentials?: boolean;
|
|
587
|
+
body?: any | null;
|
|
588
|
+
}): Observable<HttpResponse<Object>>;
|
|
589
|
+
/**
|
|
590
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
591
|
+
* and returns the response as an `ArrayBuffer`.
|
|
592
|
+
*
|
|
593
|
+
* @param url The endpoint URL.
|
|
594
|
+
* @param options The HTTP options to send with the request.
|
|
595
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
596
|
+
*/
|
|
597
|
+
delete<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
598
|
+
headers?: HttpHeaders | {
|
|
599
|
+
[header: string]: string | string[];
|
|
600
|
+
};
|
|
601
|
+
observe: "response";
|
|
602
|
+
context?: HttpContext;
|
|
603
|
+
params?: HttpParams | TParams | undefined;
|
|
604
|
+
reportProgress?: boolean;
|
|
605
|
+
responseType?: "json";
|
|
606
|
+
withCredentials?: boolean;
|
|
607
|
+
body?: any | null;
|
|
608
|
+
}): Observable<HttpResponse<TRes>>;
|
|
609
|
+
/**
|
|
610
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
611
|
+
* and returns the response as an `ArrayBuffer`.
|
|
612
|
+
*
|
|
613
|
+
* @param url The endpoint URL.
|
|
614
|
+
* @param options The HTTP options to send with the request.
|
|
615
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
616
|
+
*/
|
|
617
|
+
delete<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
618
|
+
headers?: HttpHeaders | {
|
|
619
|
+
[header: string]: string | string[];
|
|
620
|
+
};
|
|
621
|
+
context?: HttpContext;
|
|
622
|
+
observe?: "body";
|
|
623
|
+
params?: HttpParams | TParams | undefined;
|
|
624
|
+
reportProgress?: boolean;
|
|
625
|
+
responseType?: "json";
|
|
626
|
+
withCredentials?: boolean;
|
|
627
|
+
body?: any | null;
|
|
628
|
+
} | undefined): Observable<Object>;
|
|
629
|
+
/**
|
|
630
|
+
* Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
|
|
631
|
+
* and returns the response as an `ArrayBuffer`.
|
|
632
|
+
*
|
|
633
|
+
* @param url The endpoint URL.
|
|
634
|
+
* @param options The HTTP options to send with the request.
|
|
635
|
+
* @return An `Observable` of the response body as an `ArrayBuffer`.
|
|
636
|
+
*/
|
|
637
|
+
delete<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
638
|
+
headers?: HttpHeaders | {
|
|
639
|
+
[header: string]: string | string[];
|
|
640
|
+
};
|
|
641
|
+
context?: HttpContext;
|
|
642
|
+
observe?: "body";
|
|
643
|
+
params?: HttpParams | TParams | undefined;
|
|
644
|
+
reportProgress?: boolean;
|
|
645
|
+
responseType?: "json";
|
|
646
|
+
withCredentials?: boolean;
|
|
647
|
+
body?: any | null;
|
|
648
|
+
} | undefined): Observable<TRes>;
|
|
649
|
+
/**
|
|
650
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
651
|
+
* response in an `ArrayBuffer`.
|
|
652
|
+
*
|
|
653
|
+
* @param url The endpoint URL.
|
|
654
|
+
* @param options The HTTP options to send with the request.
|
|
655
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
656
|
+
*/
|
|
657
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
658
|
+
headers?: HttpHeaders | {
|
|
659
|
+
[header: string]: string | string[];
|
|
660
|
+
};
|
|
661
|
+
context?: HttpContext;
|
|
662
|
+
observe?: "body";
|
|
663
|
+
params?: HttpParams | TParams | undefined;
|
|
664
|
+
reportProgress?: boolean;
|
|
665
|
+
responseType: "arraybuffer";
|
|
666
|
+
withCredentials?: boolean;
|
|
667
|
+
transferCache?: {
|
|
668
|
+
includeHeaders?: string[];
|
|
669
|
+
} | boolean;
|
|
670
|
+
}): Observable<ArrayBuffer>;
|
|
671
|
+
/**
|
|
672
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
673
|
+
* response in an `ArrayBuffer`.
|
|
674
|
+
*
|
|
675
|
+
* @param url The endpoint URL.
|
|
676
|
+
* @param options The HTTP options to send with the request.
|
|
677
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
678
|
+
*/
|
|
679
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
680
|
+
headers?: HttpHeaders | {
|
|
681
|
+
[header: string]: string | string[];
|
|
682
|
+
};
|
|
683
|
+
context?: HttpContext;
|
|
684
|
+
observe?: "body";
|
|
685
|
+
params?: HttpParams | TParams | undefined;
|
|
686
|
+
reportProgress?: boolean;
|
|
687
|
+
responseType: "blob";
|
|
688
|
+
withCredentials?: boolean;
|
|
689
|
+
transferCache?: {
|
|
690
|
+
includeHeaders?: string[];
|
|
691
|
+
} | boolean;
|
|
692
|
+
}): Observable<Blob>;
|
|
693
|
+
/**
|
|
694
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
695
|
+
* response in an `ArrayBuffer`.
|
|
696
|
+
*
|
|
697
|
+
* @param url The endpoint URL.
|
|
698
|
+
* @param options The HTTP options to send with the request.
|
|
699
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
700
|
+
*/
|
|
701
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
702
|
+
headers?: HttpHeaders | {
|
|
703
|
+
[header: string]: string | string[];
|
|
704
|
+
};
|
|
705
|
+
context?: HttpContext;
|
|
706
|
+
observe?: "body";
|
|
707
|
+
params?: HttpParams | TParams | undefined;
|
|
708
|
+
reportProgress?: boolean;
|
|
709
|
+
responseType: "text";
|
|
710
|
+
withCredentials?: boolean;
|
|
711
|
+
transferCache?: {
|
|
712
|
+
includeHeaders?: string[];
|
|
713
|
+
} | boolean;
|
|
714
|
+
}): Observable<string>;
|
|
715
|
+
/**
|
|
716
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
717
|
+
* response in an `ArrayBuffer`.
|
|
718
|
+
*
|
|
719
|
+
* @param url The endpoint URL.
|
|
720
|
+
* @param options The HTTP options to send with the request.
|
|
721
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
722
|
+
*/
|
|
723
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
724
|
+
headers?: HttpHeaders | {
|
|
725
|
+
[header: string]: string | string[];
|
|
726
|
+
};
|
|
727
|
+
observe: "events";
|
|
728
|
+
context?: HttpContext;
|
|
729
|
+
params?: HttpParams | TParams | undefined;
|
|
730
|
+
reportProgress?: boolean;
|
|
731
|
+
responseType: "arraybuffer";
|
|
732
|
+
withCredentials?: boolean;
|
|
733
|
+
transferCache?: {
|
|
734
|
+
includeHeaders?: string[];
|
|
735
|
+
} | boolean;
|
|
736
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
737
|
+
/**
|
|
738
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
739
|
+
* response in an `ArrayBuffer`.
|
|
740
|
+
*
|
|
741
|
+
* @param url The endpoint URL.
|
|
742
|
+
* @param options The HTTP options to send with the request.
|
|
743
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
744
|
+
*/
|
|
745
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
746
|
+
headers?: HttpHeaders | {
|
|
747
|
+
[header: string]: string | string[];
|
|
748
|
+
};
|
|
749
|
+
observe: "events";
|
|
750
|
+
context?: HttpContext;
|
|
751
|
+
params?: HttpParams | TParams | undefined;
|
|
752
|
+
reportProgress?: boolean;
|
|
753
|
+
responseType: "blob";
|
|
754
|
+
withCredentials?: boolean;
|
|
755
|
+
transferCache?: {
|
|
756
|
+
includeHeaders?: string[];
|
|
757
|
+
} | boolean;
|
|
758
|
+
}): Observable<HttpEvent<Blob>>;
|
|
759
|
+
/**
|
|
760
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
761
|
+
* response in an `ArrayBuffer`.
|
|
762
|
+
*
|
|
763
|
+
* @param url The endpoint URL.
|
|
764
|
+
* @param options The HTTP options to send with the request.
|
|
765
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
766
|
+
*/
|
|
767
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
768
|
+
headers?: HttpHeaders | {
|
|
769
|
+
[header: string]: string | string[];
|
|
770
|
+
};
|
|
771
|
+
observe: "events";
|
|
772
|
+
context?: HttpContext;
|
|
773
|
+
params?: HttpParams | TParams | undefined;
|
|
774
|
+
reportProgress?: boolean;
|
|
775
|
+
responseType: "text";
|
|
776
|
+
withCredentials?: boolean;
|
|
777
|
+
transferCache?: {
|
|
778
|
+
includeHeaders?: string[];
|
|
779
|
+
} | boolean;
|
|
780
|
+
}): Observable<HttpEvent<string>>;
|
|
781
|
+
/**
|
|
782
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
783
|
+
* response in an `ArrayBuffer`.
|
|
784
|
+
*
|
|
785
|
+
* @param url The endpoint URL.
|
|
786
|
+
* @param options The HTTP options to send with the request.
|
|
787
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
788
|
+
*/
|
|
789
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
790
|
+
headers?: HttpHeaders | {
|
|
791
|
+
[header: string]: string | string[];
|
|
792
|
+
};
|
|
793
|
+
observe: "events";
|
|
794
|
+
context?: HttpContext;
|
|
795
|
+
params?: HttpParams | TParams | undefined;
|
|
796
|
+
reportProgress?: boolean;
|
|
797
|
+
responseType?: "json";
|
|
798
|
+
withCredentials?: boolean;
|
|
799
|
+
transferCache?: {
|
|
800
|
+
includeHeaders?: string[];
|
|
801
|
+
} | boolean;
|
|
802
|
+
}): Observable<HttpEvent<Object>>;
|
|
803
|
+
/**
|
|
804
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
805
|
+
* response in an `ArrayBuffer`.
|
|
806
|
+
*
|
|
807
|
+
* @param url The endpoint URL.
|
|
808
|
+
* @param options The HTTP options to send with the request.
|
|
809
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
810
|
+
*/
|
|
811
|
+
get<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
812
|
+
headers?: HttpHeaders | {
|
|
813
|
+
[header: string]: string | string[];
|
|
814
|
+
};
|
|
815
|
+
observe: "events";
|
|
816
|
+
context?: HttpContext;
|
|
817
|
+
params?: HttpParams | TParams | undefined;
|
|
818
|
+
reportProgress?: boolean;
|
|
819
|
+
responseType?: "json";
|
|
820
|
+
withCredentials?: boolean;
|
|
821
|
+
transferCache?: {
|
|
822
|
+
includeHeaders?: string[];
|
|
823
|
+
} | boolean;
|
|
824
|
+
}): Observable<HttpEvent<TRes>>;
|
|
825
|
+
/**
|
|
826
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
827
|
+
* response in an `ArrayBuffer`.
|
|
828
|
+
*
|
|
829
|
+
* @param url The endpoint URL.
|
|
830
|
+
* @param options The HTTP options to send with the request.
|
|
831
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
832
|
+
*/
|
|
833
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
834
|
+
headers?: HttpHeaders | {
|
|
835
|
+
[header: string]: string | string[];
|
|
836
|
+
};
|
|
837
|
+
observe: "response";
|
|
838
|
+
context?: HttpContext;
|
|
839
|
+
params?: HttpParams | TParams | undefined;
|
|
840
|
+
reportProgress?: boolean;
|
|
841
|
+
responseType: "arraybuffer";
|
|
842
|
+
withCredentials?: boolean;
|
|
843
|
+
transferCache?: {
|
|
844
|
+
includeHeaders?: string[];
|
|
845
|
+
} | boolean;
|
|
846
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
847
|
+
/**
|
|
848
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
849
|
+
* response in an `ArrayBuffer`.
|
|
850
|
+
*
|
|
851
|
+
* @param url The endpoint URL.
|
|
852
|
+
* @param options The HTTP options to send with the request.
|
|
853
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
854
|
+
*/
|
|
855
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
856
|
+
headers?: HttpHeaders | {
|
|
857
|
+
[header: string]: string | string[];
|
|
858
|
+
};
|
|
859
|
+
observe: "response";
|
|
860
|
+
context?: HttpContext;
|
|
861
|
+
params?: HttpParams | TParams | undefined;
|
|
862
|
+
reportProgress?: boolean;
|
|
863
|
+
responseType: "blob";
|
|
864
|
+
withCredentials?: boolean;
|
|
865
|
+
transferCache?: {
|
|
866
|
+
includeHeaders?: string[];
|
|
867
|
+
} | boolean;
|
|
868
|
+
}): Observable<HttpResponse<Blob>>;
|
|
869
|
+
/**
|
|
870
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
871
|
+
* response in an `ArrayBuffer`.
|
|
872
|
+
*
|
|
873
|
+
* @param url The endpoint URL.
|
|
874
|
+
* @param options The HTTP options to send with the request.
|
|
875
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
876
|
+
*/
|
|
877
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
878
|
+
headers?: HttpHeaders | {
|
|
879
|
+
[header: string]: string | string[];
|
|
880
|
+
};
|
|
881
|
+
observe: "response";
|
|
882
|
+
context?: HttpContext;
|
|
883
|
+
params?: HttpParams | TParams | undefined;
|
|
884
|
+
reportProgress?: boolean;
|
|
885
|
+
responseType: "text";
|
|
886
|
+
withCredentials?: boolean;
|
|
887
|
+
transferCache?: {
|
|
888
|
+
includeHeaders?: string[];
|
|
889
|
+
} | boolean;
|
|
890
|
+
}): Observable<HttpResponse<string>>;
|
|
891
|
+
/**
|
|
892
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
893
|
+
* response in an `ArrayBuffer`.
|
|
894
|
+
*
|
|
895
|
+
* @param url The endpoint URL.
|
|
896
|
+
* @param options The HTTP options to send with the request.
|
|
897
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
898
|
+
*/
|
|
899
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
900
|
+
headers?: HttpHeaders | {
|
|
901
|
+
[header: string]: string | string[];
|
|
902
|
+
};
|
|
903
|
+
observe: "response";
|
|
904
|
+
context?: HttpContext;
|
|
905
|
+
params?: HttpParams | TParams | undefined;
|
|
906
|
+
reportProgress?: boolean;
|
|
907
|
+
responseType?: "json";
|
|
908
|
+
withCredentials?: boolean;
|
|
909
|
+
transferCache?: {
|
|
910
|
+
includeHeaders?: string[];
|
|
911
|
+
} | boolean;
|
|
912
|
+
}): Observable<HttpResponse<Object>>;
|
|
913
|
+
/**
|
|
914
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
915
|
+
* response in an `ArrayBuffer`.
|
|
916
|
+
*
|
|
917
|
+
* @param url The endpoint URL.
|
|
918
|
+
* @param options The HTTP options to send with the request.
|
|
919
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
920
|
+
*/
|
|
921
|
+
get<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
922
|
+
headers?: HttpHeaders | {
|
|
923
|
+
[header: string]: string | string[];
|
|
924
|
+
};
|
|
925
|
+
observe: "response";
|
|
926
|
+
context?: HttpContext;
|
|
927
|
+
params?: HttpParams | TParams | undefined;
|
|
928
|
+
reportProgress?: boolean;
|
|
929
|
+
responseType?: "json";
|
|
930
|
+
withCredentials?: boolean;
|
|
931
|
+
transferCache?: {
|
|
932
|
+
includeHeaders?: string[];
|
|
933
|
+
} | boolean;
|
|
934
|
+
}): Observable<HttpResponse<TRes>>;
|
|
935
|
+
/**
|
|
936
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
937
|
+
* response in an `ArrayBuffer`.
|
|
938
|
+
*
|
|
939
|
+
* @param url The endpoint URL.
|
|
940
|
+
* @param options The HTTP options to send with the request.
|
|
941
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
942
|
+
*/
|
|
943
|
+
get<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
944
|
+
headers?: HttpHeaders | {
|
|
945
|
+
[header: string]: string | string[];
|
|
946
|
+
};
|
|
947
|
+
context?: HttpContext;
|
|
948
|
+
observe?: "body";
|
|
949
|
+
params?: HttpParams | TParams | undefined;
|
|
950
|
+
reportProgress?: boolean;
|
|
951
|
+
responseType?: "json";
|
|
952
|
+
withCredentials?: boolean;
|
|
953
|
+
transferCache?: {
|
|
954
|
+
includeHeaders?: string[];
|
|
955
|
+
} | boolean;
|
|
956
|
+
} | undefined): Observable<Object>;
|
|
957
|
+
/**
|
|
958
|
+
* Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
|
|
959
|
+
* response in an `ArrayBuffer`.
|
|
960
|
+
*
|
|
961
|
+
* @param url The endpoint URL.
|
|
962
|
+
* @param options The HTTP options to send with the request.
|
|
963
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
964
|
+
*/
|
|
965
|
+
get<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
966
|
+
headers?: HttpHeaders | {
|
|
967
|
+
[header: string]: string | string[];
|
|
968
|
+
};
|
|
969
|
+
context?: HttpContext;
|
|
970
|
+
observe?: "body";
|
|
971
|
+
params?: HttpParams | TParams | undefined;
|
|
972
|
+
reportProgress?: boolean;
|
|
973
|
+
responseType?: "json";
|
|
974
|
+
withCredentials?: boolean;
|
|
975
|
+
transferCache?: {
|
|
976
|
+
includeHeaders?: string[];
|
|
977
|
+
} | boolean;
|
|
978
|
+
} | undefined): Observable<TRes>;
|
|
979
|
+
/**
|
|
980
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
981
|
+
* returns the response as an `ArrayBuffer`.
|
|
982
|
+
*
|
|
983
|
+
* @param url The endpoint URL.
|
|
984
|
+
* @param options The HTTP options to send with the request.
|
|
985
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
986
|
+
*/
|
|
987
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
988
|
+
headers?: HttpHeaders | {
|
|
989
|
+
[header: string]: string | string[];
|
|
990
|
+
};
|
|
991
|
+
context?: HttpContext;
|
|
992
|
+
observe?: "body";
|
|
993
|
+
params?: HttpParams | TParams | undefined;
|
|
994
|
+
reportProgress?: boolean;
|
|
995
|
+
responseType: "arraybuffer";
|
|
996
|
+
withCredentials?: boolean;
|
|
997
|
+
transferCache?: {
|
|
998
|
+
includeHeaders?: string[];
|
|
999
|
+
} | boolean;
|
|
1000
|
+
}): Observable<ArrayBuffer>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1003
|
+
* returns the response as an `ArrayBuffer`.
|
|
1004
|
+
*
|
|
1005
|
+
* @param url The endpoint URL.
|
|
1006
|
+
* @param options The HTTP options to send with the request.
|
|
1007
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1008
|
+
*/
|
|
1009
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1010
|
+
headers?: HttpHeaders | {
|
|
1011
|
+
[header: string]: string | string[];
|
|
1012
|
+
};
|
|
1013
|
+
context?: HttpContext;
|
|
1014
|
+
observe?: "body";
|
|
1015
|
+
params?: HttpParams | TParams | undefined;
|
|
1016
|
+
reportProgress?: boolean;
|
|
1017
|
+
responseType: "blob";
|
|
1018
|
+
withCredentials?: boolean;
|
|
1019
|
+
transferCache?: {
|
|
1020
|
+
includeHeaders?: string[];
|
|
1021
|
+
} | boolean;
|
|
1022
|
+
}): Observable<Blob>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1025
|
+
* returns the response as an `ArrayBuffer`.
|
|
1026
|
+
*
|
|
1027
|
+
* @param url The endpoint URL.
|
|
1028
|
+
* @param options The HTTP options to send with the request.
|
|
1029
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1030
|
+
*/
|
|
1031
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1032
|
+
headers?: HttpHeaders | {
|
|
1033
|
+
[header: string]: string | string[];
|
|
1034
|
+
};
|
|
1035
|
+
context?: HttpContext;
|
|
1036
|
+
observe?: "body";
|
|
1037
|
+
params?: HttpParams | TParams | undefined;
|
|
1038
|
+
reportProgress?: boolean;
|
|
1039
|
+
responseType: "text";
|
|
1040
|
+
withCredentials?: boolean;
|
|
1041
|
+
transferCache?: {
|
|
1042
|
+
includeHeaders?: string[];
|
|
1043
|
+
} | boolean;
|
|
1044
|
+
}): Observable<string>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1047
|
+
* returns the response as an `ArrayBuffer`.
|
|
1048
|
+
*
|
|
1049
|
+
* @param url The endpoint URL.
|
|
1050
|
+
* @param options The HTTP options to send with the request.
|
|
1051
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1052
|
+
*/
|
|
1053
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1054
|
+
headers?: HttpHeaders | {
|
|
1055
|
+
[header: string]: string | string[];
|
|
1056
|
+
};
|
|
1057
|
+
observe: "events";
|
|
1058
|
+
context?: HttpContext;
|
|
1059
|
+
params?: HttpParams | TParams | undefined;
|
|
1060
|
+
reportProgress?: boolean;
|
|
1061
|
+
responseType: "arraybuffer";
|
|
1062
|
+
withCredentials?: boolean;
|
|
1063
|
+
transferCache?: {
|
|
1064
|
+
includeHeaders?: string[];
|
|
1065
|
+
} | boolean;
|
|
1066
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1069
|
+
* returns the response as an `ArrayBuffer`.
|
|
1070
|
+
*
|
|
1071
|
+
* @param url The endpoint URL.
|
|
1072
|
+
* @param options The HTTP options to send with the request.
|
|
1073
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1074
|
+
*/
|
|
1075
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1076
|
+
headers?: HttpHeaders | {
|
|
1077
|
+
[header: string]: string | string[];
|
|
1078
|
+
};
|
|
1079
|
+
observe: "events";
|
|
1080
|
+
context?: HttpContext;
|
|
1081
|
+
params?: HttpParams | TParams | undefined;
|
|
1082
|
+
reportProgress?: boolean;
|
|
1083
|
+
responseType: "blob";
|
|
1084
|
+
withCredentials?: boolean;
|
|
1085
|
+
transferCache?: {
|
|
1086
|
+
includeHeaders?: string[];
|
|
1087
|
+
} | boolean;
|
|
1088
|
+
}): Observable<HttpEvent<Blob>>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1091
|
+
* returns the response as an `ArrayBuffer`.
|
|
1092
|
+
*
|
|
1093
|
+
* @param url The endpoint URL.
|
|
1094
|
+
* @param options The HTTP options to send with the request.
|
|
1095
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1096
|
+
*/
|
|
1097
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1098
|
+
headers?: HttpHeaders | {
|
|
1099
|
+
[header: string]: string | string[];
|
|
1100
|
+
};
|
|
1101
|
+
observe: "events";
|
|
1102
|
+
context?: HttpContext;
|
|
1103
|
+
params?: HttpParams | TParams | undefined;
|
|
1104
|
+
reportProgress?: boolean;
|
|
1105
|
+
responseType: "text";
|
|
1106
|
+
withCredentials?: boolean;
|
|
1107
|
+
transferCache?: {
|
|
1108
|
+
includeHeaders?: string[];
|
|
1109
|
+
} | boolean;
|
|
1110
|
+
}): Observable<HttpEvent<string>>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1113
|
+
* returns the response as an `ArrayBuffer`.
|
|
1114
|
+
*
|
|
1115
|
+
* @param url The endpoint URL.
|
|
1116
|
+
* @param options The HTTP options to send with the request.
|
|
1117
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1118
|
+
*/
|
|
1119
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1120
|
+
headers?: HttpHeaders | {
|
|
1121
|
+
[header: string]: string | string[];
|
|
1122
|
+
};
|
|
1123
|
+
observe: "events";
|
|
1124
|
+
context?: HttpContext;
|
|
1125
|
+
params?: HttpParams | TParams | undefined;
|
|
1126
|
+
reportProgress?: boolean;
|
|
1127
|
+
responseType?: "json";
|
|
1128
|
+
withCredentials?: boolean;
|
|
1129
|
+
transferCache?: {
|
|
1130
|
+
includeHeaders?: string[];
|
|
1131
|
+
} | boolean;
|
|
1132
|
+
}): Observable<HttpEvent<Object>>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1135
|
+
* returns the response as an `ArrayBuffer`.
|
|
1136
|
+
*
|
|
1137
|
+
* @param url The endpoint URL.
|
|
1138
|
+
* @param options The HTTP options to send with the request.
|
|
1139
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1140
|
+
*/
|
|
1141
|
+
head<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1142
|
+
headers?: HttpHeaders | {
|
|
1143
|
+
[header: string]: string | string[];
|
|
1144
|
+
};
|
|
1145
|
+
observe: "events";
|
|
1146
|
+
context?: HttpContext;
|
|
1147
|
+
params?: HttpParams | TParams | undefined;
|
|
1148
|
+
reportProgress?: boolean;
|
|
1149
|
+
responseType?: "json";
|
|
1150
|
+
withCredentials?: boolean;
|
|
1151
|
+
transferCache?: {
|
|
1152
|
+
includeHeaders?: string[];
|
|
1153
|
+
} | boolean;
|
|
1154
|
+
}): Observable<HttpEvent<TRes>>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1157
|
+
* returns the response as an `ArrayBuffer`.
|
|
1158
|
+
*
|
|
1159
|
+
* @param url The endpoint URL.
|
|
1160
|
+
* @param options The HTTP options to send with the request.
|
|
1161
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1162
|
+
*/
|
|
1163
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1164
|
+
headers?: HttpHeaders | {
|
|
1165
|
+
[header: string]: string | string[];
|
|
1166
|
+
};
|
|
1167
|
+
observe: "response";
|
|
1168
|
+
context?: HttpContext;
|
|
1169
|
+
params?: HttpParams | TParams | undefined;
|
|
1170
|
+
reportProgress?: boolean;
|
|
1171
|
+
responseType: "arraybuffer";
|
|
1172
|
+
withCredentials?: boolean;
|
|
1173
|
+
transferCache?: {
|
|
1174
|
+
includeHeaders?: string[];
|
|
1175
|
+
} | boolean;
|
|
1176
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
1177
|
+
/**
|
|
1178
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1179
|
+
* returns the response as an `ArrayBuffer`.
|
|
1180
|
+
*
|
|
1181
|
+
* @param url The endpoint URL.
|
|
1182
|
+
* @param options The HTTP options to send with the request.
|
|
1183
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1184
|
+
*/
|
|
1185
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1186
|
+
headers?: HttpHeaders | {
|
|
1187
|
+
[header: string]: string | string[];
|
|
1188
|
+
};
|
|
1189
|
+
observe: "response";
|
|
1190
|
+
context?: HttpContext;
|
|
1191
|
+
params?: HttpParams | TParams | undefined;
|
|
1192
|
+
reportProgress?: boolean;
|
|
1193
|
+
responseType: "blob";
|
|
1194
|
+
withCredentials?: boolean;
|
|
1195
|
+
transferCache?: {
|
|
1196
|
+
includeHeaders?: string[];
|
|
1197
|
+
} | boolean;
|
|
1198
|
+
}): Observable<HttpResponse<Blob>>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1201
|
+
* returns the response as an `ArrayBuffer`.
|
|
1202
|
+
*
|
|
1203
|
+
* @param url The endpoint URL.
|
|
1204
|
+
* @param options The HTTP options to send with the request.
|
|
1205
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1206
|
+
*/
|
|
1207
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1208
|
+
headers?: HttpHeaders | {
|
|
1209
|
+
[header: string]: string | string[];
|
|
1210
|
+
};
|
|
1211
|
+
observe: "response";
|
|
1212
|
+
context?: HttpContext;
|
|
1213
|
+
params?: HttpParams | TParams | undefined;
|
|
1214
|
+
reportProgress?: boolean;
|
|
1215
|
+
responseType: "text";
|
|
1216
|
+
withCredentials?: boolean;
|
|
1217
|
+
transferCache?: {
|
|
1218
|
+
includeHeaders?: string[];
|
|
1219
|
+
} | boolean;
|
|
1220
|
+
}): Observable<HttpResponse<string>>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1223
|
+
* returns the response as an `ArrayBuffer`.
|
|
1224
|
+
*
|
|
1225
|
+
* @param url The endpoint URL.
|
|
1226
|
+
* @param options The HTTP options to send with the request.
|
|
1227
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1228
|
+
*/
|
|
1229
|
+
head<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1230
|
+
headers?: HttpHeaders | {
|
|
1231
|
+
[header: string]: string | string[];
|
|
1232
|
+
};
|
|
1233
|
+
observe: "response";
|
|
1234
|
+
context?: HttpContext;
|
|
1235
|
+
params?: HttpParams | TParams | undefined;
|
|
1236
|
+
reportProgress?: boolean;
|
|
1237
|
+
responseType?: "json";
|
|
1238
|
+
withCredentials?: boolean;
|
|
1239
|
+
transferCache?: {
|
|
1240
|
+
includeHeaders?: string[];
|
|
1241
|
+
} | boolean;
|
|
1242
|
+
}): Observable<HttpResponse<Object>>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
|
|
1245
|
+
* returns the response as an `ArrayBuffer`.
|
|
1246
|
+
*
|
|
1247
|
+
* @param url The endpoint URL.
|
|
1248
|
+
* @param options The HTTP options to send with the request.
|
|
1249
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1250
|
+
*/
|
|
1251
|
+
head<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1252
|
+
headers?: HttpHeaders | {
|
|
1253
|
+
[header: string]: string | string[];
|
|
1254
|
+
};
|
|
1255
|
+
observe?: "body";
|
|
1256
|
+
context?: HttpContext;
|
|
1257
|
+
params?: HttpParams | TParams | undefined;
|
|
1258
|
+
reportProgress?: boolean;
|
|
1259
|
+
responseType?: "json";
|
|
1260
|
+
withCredentials?: boolean;
|
|
1261
|
+
transferCache?: {
|
|
1262
|
+
includeHeaders?: string[];
|
|
1263
|
+
} | boolean;
|
|
1264
|
+
}): Observable<TRes>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Constructs a `JSONP` request for the given URL and name of the callback parameter.
|
|
1267
|
+
*
|
|
1268
|
+
* @param url The resource URL.
|
|
1269
|
+
* @param callbackParam The callback function name.
|
|
1270
|
+
*
|
|
1271
|
+
* @return An `Observable` of the response object, with response body as an object.
|
|
1272
|
+
*/
|
|
1273
|
+
jsonp(url: string | string[], callbackParam: string): Observable<Object>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Constructs a `JSONP` request for the given URL and name of the callback parameter.
|
|
1276
|
+
*
|
|
1277
|
+
* @param url The resource URL.
|
|
1278
|
+
* @param callbackParam The callback function name.
|
|
1279
|
+
*
|
|
1280
|
+
* @return An `Observable` of the response object, with response body as an object.
|
|
1281
|
+
*/
|
|
1282
|
+
jsonp<TRes>(url: string | string[], callbackParam: string): Observable<TRes>;
|
|
1283
|
+
/**
|
|
1284
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1285
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1286
|
+
*
|
|
1287
|
+
* @param url The endpoint URL.
|
|
1288
|
+
* @param options HTTP options.
|
|
1289
|
+
*
|
|
1290
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1291
|
+
*/
|
|
1292
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1293
|
+
headers?: HttpHeaders | {
|
|
1294
|
+
[header: string]: string | string[];
|
|
1295
|
+
};
|
|
1296
|
+
context?: HttpContext;
|
|
1297
|
+
observe?: "body";
|
|
1298
|
+
params?: HttpParams | TParams | undefined;
|
|
1299
|
+
reportProgress?: boolean;
|
|
1300
|
+
responseType: "arraybuffer";
|
|
1301
|
+
withCredentials?: boolean;
|
|
1302
|
+
}): Observable<ArrayBuffer>;
|
|
1303
|
+
/**
|
|
1304
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1305
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1306
|
+
*
|
|
1307
|
+
* @param url The endpoint URL.
|
|
1308
|
+
* @param options HTTP options.
|
|
1309
|
+
*
|
|
1310
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1311
|
+
*/
|
|
1312
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1313
|
+
headers?: HttpHeaders | {
|
|
1314
|
+
[header: string]: string | string[];
|
|
1315
|
+
};
|
|
1316
|
+
context?: HttpContext;
|
|
1317
|
+
observe?: "body";
|
|
1318
|
+
params?: HttpParams | TParams | undefined;
|
|
1319
|
+
reportProgress?: boolean;
|
|
1320
|
+
responseType: "blob";
|
|
1321
|
+
withCredentials?: boolean;
|
|
1322
|
+
}): Observable<Blob>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1325
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1326
|
+
*
|
|
1327
|
+
* @param url The endpoint URL.
|
|
1328
|
+
* @param options HTTP options.
|
|
1329
|
+
*
|
|
1330
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1331
|
+
*/
|
|
1332
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1333
|
+
headers?: HttpHeaders | {
|
|
1334
|
+
[header: string]: string | string[];
|
|
1335
|
+
};
|
|
1336
|
+
context?: HttpContext;
|
|
1337
|
+
observe?: "body";
|
|
1338
|
+
params?: HttpParams | TParams | undefined;
|
|
1339
|
+
reportProgress?: boolean;
|
|
1340
|
+
responseType: "text";
|
|
1341
|
+
withCredentials?: boolean;
|
|
1342
|
+
}): Observable<string>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1345
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1346
|
+
*
|
|
1347
|
+
* @param url The endpoint URL.
|
|
1348
|
+
* @param options HTTP options.
|
|
1349
|
+
*
|
|
1350
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1351
|
+
*/
|
|
1352
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1353
|
+
headers?: HttpHeaders | {
|
|
1354
|
+
[header: string]: string | string[];
|
|
1355
|
+
};
|
|
1356
|
+
observe: "events";
|
|
1357
|
+
context?: HttpContext;
|
|
1358
|
+
params?: HttpParams | TParams | undefined;
|
|
1359
|
+
reportProgress?: boolean;
|
|
1360
|
+
responseType: "arraybuffer";
|
|
1361
|
+
withCredentials?: boolean;
|
|
1362
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1365
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1366
|
+
*
|
|
1367
|
+
* @param url The endpoint URL.
|
|
1368
|
+
* @param options HTTP options.
|
|
1369
|
+
*
|
|
1370
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1371
|
+
*/
|
|
1372
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1373
|
+
headers?: HttpHeaders | {
|
|
1374
|
+
[header: string]: string | string[];
|
|
1375
|
+
};
|
|
1376
|
+
observe: "events";
|
|
1377
|
+
context?: HttpContext;
|
|
1378
|
+
params?: HttpParams | TParams | undefined;
|
|
1379
|
+
reportProgress?: boolean;
|
|
1380
|
+
responseType: "blob";
|
|
1381
|
+
withCredentials?: boolean;
|
|
1382
|
+
}): Observable<HttpEvent<Blob>>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1385
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1386
|
+
*
|
|
1387
|
+
* @param url The endpoint URL.
|
|
1388
|
+
* @param options HTTP options.
|
|
1389
|
+
*
|
|
1390
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1391
|
+
*/
|
|
1392
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1393
|
+
headers?: HttpHeaders | {
|
|
1394
|
+
[header: string]: string | string[];
|
|
1395
|
+
};
|
|
1396
|
+
observe: "events";
|
|
1397
|
+
context?: HttpContext;
|
|
1398
|
+
params?: HttpParams | TParams | undefined;
|
|
1399
|
+
reportProgress?: boolean;
|
|
1400
|
+
responseType: "text";
|
|
1401
|
+
withCredentials?: boolean;
|
|
1402
|
+
}): Observable<HttpEvent<string>>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1405
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1406
|
+
*
|
|
1407
|
+
* @param url The endpoint URL.
|
|
1408
|
+
* @param options HTTP options.
|
|
1409
|
+
*
|
|
1410
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1411
|
+
*/
|
|
1412
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1413
|
+
headers?: HttpHeaders | {
|
|
1414
|
+
[header: string]: string | string[];
|
|
1415
|
+
};
|
|
1416
|
+
observe: "events";
|
|
1417
|
+
context?: HttpContext;
|
|
1418
|
+
params?: HttpParams | TParams | undefined;
|
|
1419
|
+
reportProgress?: boolean;
|
|
1420
|
+
responseType?: "json";
|
|
1421
|
+
withCredentials?: boolean;
|
|
1422
|
+
}): Observable<HttpEvent<Object>>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1425
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1426
|
+
*
|
|
1427
|
+
* @param url The endpoint URL.
|
|
1428
|
+
* @param options HTTP options.
|
|
1429
|
+
*
|
|
1430
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1431
|
+
*/
|
|
1432
|
+
options<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1433
|
+
headers?: HttpHeaders | {
|
|
1434
|
+
[header: string]: string | string[];
|
|
1435
|
+
};
|
|
1436
|
+
observe: "events";
|
|
1437
|
+
context?: HttpContext;
|
|
1438
|
+
params?: HttpParams | TParams | undefined;
|
|
1439
|
+
reportProgress?: boolean;
|
|
1440
|
+
responseType?: "json";
|
|
1441
|
+
withCredentials?: boolean;
|
|
1442
|
+
}): Observable<HttpEvent<TRes>>;
|
|
1443
|
+
/**
|
|
1444
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1445
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1446
|
+
*
|
|
1447
|
+
* @param url The endpoint URL.
|
|
1448
|
+
* @param options HTTP options.
|
|
1449
|
+
*
|
|
1450
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1451
|
+
*/
|
|
1452
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1453
|
+
headers?: HttpHeaders | {
|
|
1454
|
+
[header: string]: string | string[];
|
|
1455
|
+
};
|
|
1456
|
+
observe: "response";
|
|
1457
|
+
context?: HttpContext;
|
|
1458
|
+
params?: HttpParams | TParams | undefined;
|
|
1459
|
+
reportProgress?: boolean;
|
|
1460
|
+
responseType: "arraybuffer";
|
|
1461
|
+
withCredentials?: boolean;
|
|
1462
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1465
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1466
|
+
*
|
|
1467
|
+
* @param url The endpoint URL.
|
|
1468
|
+
* @param options HTTP options.
|
|
1469
|
+
*
|
|
1470
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1471
|
+
*/
|
|
1472
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1473
|
+
headers?: HttpHeaders | {
|
|
1474
|
+
[header: string]: string | string[];
|
|
1475
|
+
};
|
|
1476
|
+
observe: "response";
|
|
1477
|
+
context?: HttpContext;
|
|
1478
|
+
params?: HttpParams | TParams | undefined;
|
|
1479
|
+
reportProgress?: boolean;
|
|
1480
|
+
responseType: "blob";
|
|
1481
|
+
withCredentials?: boolean;
|
|
1482
|
+
}): Observable<HttpResponse<Blob>>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1485
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1486
|
+
*
|
|
1487
|
+
* @param url The endpoint URL.
|
|
1488
|
+
* @param options HTTP options.
|
|
1489
|
+
*
|
|
1490
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1491
|
+
*/
|
|
1492
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1493
|
+
headers?: HttpHeaders | {
|
|
1494
|
+
[header: string]: string | string[];
|
|
1495
|
+
};
|
|
1496
|
+
observe: "response";
|
|
1497
|
+
context?: HttpContext;
|
|
1498
|
+
params?: HttpParams | TParams | undefined;
|
|
1499
|
+
reportProgress?: boolean;
|
|
1500
|
+
responseType: "text";
|
|
1501
|
+
withCredentials?: boolean;
|
|
1502
|
+
}): Observable<HttpResponse<string>>;
|
|
1503
|
+
/**
|
|
1504
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1505
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1506
|
+
*
|
|
1507
|
+
* @param url The endpoint URL.
|
|
1508
|
+
* @param options HTTP options.
|
|
1509
|
+
*
|
|
1510
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1511
|
+
*/
|
|
1512
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1513
|
+
headers?: HttpHeaders | {
|
|
1514
|
+
[header: string]: string | string[];
|
|
1515
|
+
};
|
|
1516
|
+
observe: "response";
|
|
1517
|
+
context?: HttpContext;
|
|
1518
|
+
params?: HttpParams | TParams | undefined;
|
|
1519
|
+
reportProgress?: boolean;
|
|
1520
|
+
responseType?: "json";
|
|
1521
|
+
withCredentials?: boolean;
|
|
1522
|
+
}): Observable<HttpResponse<Object>>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1525
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1526
|
+
*
|
|
1527
|
+
* @param url The endpoint URL.
|
|
1528
|
+
* @param options HTTP options.
|
|
1529
|
+
*
|
|
1530
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1531
|
+
*/
|
|
1532
|
+
options<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options: {
|
|
1533
|
+
headers?: HttpHeaders | {
|
|
1534
|
+
[header: string]: string | string[];
|
|
1535
|
+
};
|
|
1536
|
+
observe: "response";
|
|
1537
|
+
context?: HttpContext;
|
|
1538
|
+
params?: HttpParams | TParams | undefined;
|
|
1539
|
+
reportProgress?: boolean;
|
|
1540
|
+
responseType?: "json";
|
|
1541
|
+
withCredentials?: boolean;
|
|
1542
|
+
}): Observable<HttpResponse<TRes>>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1545
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1546
|
+
*
|
|
1547
|
+
* @param url The endpoint URL.
|
|
1548
|
+
* @param options HTTP options.
|
|
1549
|
+
*
|
|
1550
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1551
|
+
*/
|
|
1552
|
+
options<TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
1553
|
+
headers?: HttpHeaders | {
|
|
1554
|
+
[header: string]: string | string[];
|
|
1555
|
+
};
|
|
1556
|
+
context?: HttpContext;
|
|
1557
|
+
observe?: "body";
|
|
1558
|
+
params?: HttpParams | TParams | undefined;
|
|
1559
|
+
reportProgress?: boolean;
|
|
1560
|
+
responseType?: "json";
|
|
1561
|
+
withCredentials?: boolean;
|
|
1562
|
+
} | undefined): Observable<Object>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Constructs an `OPTIONS` request that interprets the body as an
|
|
1565
|
+
* `ArrayBuffer` and returns the response as an `ArrayBuffer`.
|
|
1566
|
+
*
|
|
1567
|
+
* @param url The endpoint URL.
|
|
1568
|
+
* @param options HTTP options.
|
|
1569
|
+
*
|
|
1570
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1571
|
+
*/
|
|
1572
|
+
options<TRes, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], options?: {
|
|
1573
|
+
headers?: HttpHeaders | {
|
|
1574
|
+
[header: string]: string | string[];
|
|
1575
|
+
};
|
|
1576
|
+
context?: HttpContext;
|
|
1577
|
+
observe?: "body";
|
|
1578
|
+
params?: HttpParams | TParams | undefined;
|
|
1579
|
+
reportProgress?: boolean;
|
|
1580
|
+
responseType?: "json";
|
|
1581
|
+
withCredentials?: boolean;
|
|
1582
|
+
} | undefined): Observable<TRes>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1585
|
+
* the response as an `ArrayBuffer`.
|
|
1586
|
+
*
|
|
1587
|
+
* @param url The endpoint URL.
|
|
1588
|
+
* @param body The resources to edit.
|
|
1589
|
+
* @param options HTTP options.
|
|
1590
|
+
*
|
|
1591
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1592
|
+
*/
|
|
1593
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1594
|
+
headers?: HttpHeaders | {
|
|
1595
|
+
[header: string]: string | string[];
|
|
1596
|
+
};
|
|
1597
|
+
context?: HttpContext;
|
|
1598
|
+
observe?: "body";
|
|
1599
|
+
params?: HttpParams | TParams | undefined;
|
|
1600
|
+
reportProgress?: boolean;
|
|
1601
|
+
responseType: "arraybuffer";
|
|
1602
|
+
withCredentials?: boolean;
|
|
1603
|
+
}): Observable<ArrayBuffer>;
|
|
1604
|
+
/**
|
|
1605
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1606
|
+
* the response as an `ArrayBuffer`.
|
|
1607
|
+
*
|
|
1608
|
+
* @param url The endpoint URL.
|
|
1609
|
+
* @param body The resources to edit.
|
|
1610
|
+
* @param options HTTP options.
|
|
1611
|
+
*
|
|
1612
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1613
|
+
*/
|
|
1614
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1615
|
+
headers?: HttpHeaders | {
|
|
1616
|
+
[header: string]: string | string[];
|
|
1617
|
+
};
|
|
1618
|
+
context?: HttpContext;
|
|
1619
|
+
observe?: "body";
|
|
1620
|
+
params?: HttpParams | TParams | undefined;
|
|
1621
|
+
reportProgress?: boolean;
|
|
1622
|
+
responseType: "blob";
|
|
1623
|
+
withCredentials?: boolean;
|
|
1624
|
+
}): Observable<Blob>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1627
|
+
* the response as an `ArrayBuffer`.
|
|
1628
|
+
*
|
|
1629
|
+
* @param url The endpoint URL.
|
|
1630
|
+
* @param body The resources to edit.
|
|
1631
|
+
* @param options HTTP options.
|
|
1632
|
+
*
|
|
1633
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1634
|
+
*/
|
|
1635
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1636
|
+
headers?: HttpHeaders | {
|
|
1637
|
+
[header: string]: string | string[];
|
|
1638
|
+
};
|
|
1639
|
+
context?: HttpContext;
|
|
1640
|
+
observe?: "body";
|
|
1641
|
+
params?: HttpParams | TParams | undefined;
|
|
1642
|
+
reportProgress?: boolean;
|
|
1643
|
+
responseType: "text";
|
|
1644
|
+
withCredentials?: boolean;
|
|
1645
|
+
}): Observable<string>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1648
|
+
* the response as an `ArrayBuffer`.
|
|
1649
|
+
*
|
|
1650
|
+
* @param url The endpoint URL.
|
|
1651
|
+
* @param body The resources to edit.
|
|
1652
|
+
* @param options HTTP options.
|
|
1653
|
+
*
|
|
1654
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1655
|
+
*/
|
|
1656
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1657
|
+
headers?: HttpHeaders | {
|
|
1658
|
+
[header: string]: string | string[];
|
|
1659
|
+
};
|
|
1660
|
+
observe: "events";
|
|
1661
|
+
context?: HttpContext;
|
|
1662
|
+
params?: HttpParams | TParams | undefined;
|
|
1663
|
+
reportProgress?: boolean;
|
|
1664
|
+
responseType: "arraybuffer";
|
|
1665
|
+
withCredentials?: boolean;
|
|
1666
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
1667
|
+
/**
|
|
1668
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1669
|
+
* the response as an `ArrayBuffer`.
|
|
1670
|
+
*
|
|
1671
|
+
* @param url The endpoint URL.
|
|
1672
|
+
* @param body The resources to edit.
|
|
1673
|
+
* @param options HTTP options.
|
|
1674
|
+
*
|
|
1675
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1676
|
+
*/
|
|
1677
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1678
|
+
headers?: HttpHeaders | {
|
|
1679
|
+
[header: string]: string | string[];
|
|
1680
|
+
};
|
|
1681
|
+
observe: "events";
|
|
1682
|
+
context?: HttpContext;
|
|
1683
|
+
params?: HttpParams | TParams | undefined;
|
|
1684
|
+
reportProgress?: boolean;
|
|
1685
|
+
responseType: "blob";
|
|
1686
|
+
withCredentials?: boolean;
|
|
1687
|
+
}): Observable<HttpEvent<Blob>>;
|
|
1688
|
+
/**
|
|
1689
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1690
|
+
* the response as an `ArrayBuffer`.
|
|
1691
|
+
*
|
|
1692
|
+
* @param url The endpoint URL.
|
|
1693
|
+
* @param body The resources to edit.
|
|
1694
|
+
* @param options HTTP options.
|
|
1695
|
+
*
|
|
1696
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1697
|
+
*/
|
|
1698
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1699
|
+
headers?: HttpHeaders | {
|
|
1700
|
+
[header: string]: string | string[];
|
|
1701
|
+
};
|
|
1702
|
+
observe: "events";
|
|
1703
|
+
context?: HttpContext;
|
|
1704
|
+
params?: HttpParams | TParams | undefined;
|
|
1705
|
+
reportProgress?: boolean;
|
|
1706
|
+
responseType: "text";
|
|
1707
|
+
withCredentials?: boolean;
|
|
1708
|
+
}): Observable<HttpEvent<string>>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1711
|
+
* the response as an `ArrayBuffer`.
|
|
1712
|
+
*
|
|
1713
|
+
* @param url The endpoint URL.
|
|
1714
|
+
* @param body The resources to edit.
|
|
1715
|
+
* @param options HTTP options.
|
|
1716
|
+
*
|
|
1717
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1718
|
+
*/
|
|
1719
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1720
|
+
headers?: HttpHeaders | {
|
|
1721
|
+
[header: string]: string | string[];
|
|
1722
|
+
};
|
|
1723
|
+
observe: "events";
|
|
1724
|
+
context?: HttpContext;
|
|
1725
|
+
params?: HttpParams | TParams | undefined;
|
|
1726
|
+
reportProgress?: boolean;
|
|
1727
|
+
responseType?: "json";
|
|
1728
|
+
withCredentials?: boolean;
|
|
1729
|
+
}): Observable<HttpEvent<Object>>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1732
|
+
* the response as an `ArrayBuffer`.
|
|
1733
|
+
*
|
|
1734
|
+
* @param url The endpoint URL.
|
|
1735
|
+
* @param body The resources to edit.
|
|
1736
|
+
* @param options HTTP options.
|
|
1737
|
+
*
|
|
1738
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1739
|
+
*/
|
|
1740
|
+
patch<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1741
|
+
headers?: HttpHeaders | {
|
|
1742
|
+
[header: string]: string | string[];
|
|
1743
|
+
};
|
|
1744
|
+
observe: "events";
|
|
1745
|
+
context?: HttpContext;
|
|
1746
|
+
params?: HttpParams | TParams | undefined;
|
|
1747
|
+
reportProgress?: boolean;
|
|
1748
|
+
responseType?: "json";
|
|
1749
|
+
withCredentials?: boolean;
|
|
1750
|
+
}): Observable<HttpEvent<TRes>>;
|
|
1751
|
+
/**
|
|
1752
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1753
|
+
* the response as an `ArrayBuffer`.
|
|
1754
|
+
*
|
|
1755
|
+
* @param url The endpoint URL.
|
|
1756
|
+
* @param body The resources to edit.
|
|
1757
|
+
* @param options HTTP options.
|
|
1758
|
+
*
|
|
1759
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1760
|
+
*/
|
|
1761
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1762
|
+
headers?: HttpHeaders | {
|
|
1763
|
+
[header: string]: string | string[];
|
|
1764
|
+
};
|
|
1765
|
+
observe: "response";
|
|
1766
|
+
context?: HttpContext;
|
|
1767
|
+
params?: HttpParams | TParams | undefined;
|
|
1768
|
+
reportProgress?: boolean;
|
|
1769
|
+
responseType: "arraybuffer";
|
|
1770
|
+
withCredentials?: boolean;
|
|
1771
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1774
|
+
* the response as an `ArrayBuffer`.
|
|
1775
|
+
*
|
|
1776
|
+
* @param url The endpoint URL.
|
|
1777
|
+
* @param body The resources to edit.
|
|
1778
|
+
* @param options HTTP options.
|
|
1779
|
+
*
|
|
1780
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1781
|
+
*/
|
|
1782
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1783
|
+
headers?: HttpHeaders | {
|
|
1784
|
+
[header: string]: string | string[];
|
|
1785
|
+
};
|
|
1786
|
+
observe: "response";
|
|
1787
|
+
context?: HttpContext;
|
|
1788
|
+
params?: HttpParams | TParams | undefined;
|
|
1789
|
+
reportProgress?: boolean;
|
|
1790
|
+
responseType: "blob";
|
|
1791
|
+
withCredentials?: boolean;
|
|
1792
|
+
}): Observable<HttpResponse<Blob>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1795
|
+
* the response as an `ArrayBuffer`.
|
|
1796
|
+
*
|
|
1797
|
+
* @param url The endpoint URL.
|
|
1798
|
+
* @param body The resources to edit.
|
|
1799
|
+
* @param options HTTP options.
|
|
1800
|
+
*
|
|
1801
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1802
|
+
*/
|
|
1803
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1804
|
+
headers?: HttpHeaders | {
|
|
1805
|
+
[header: string]: string | string[];
|
|
1806
|
+
};
|
|
1807
|
+
observe: "response";
|
|
1808
|
+
context?: HttpContext;
|
|
1809
|
+
params?: HttpParams | TParams | undefined;
|
|
1810
|
+
reportProgress?: boolean;
|
|
1811
|
+
responseType: "text";
|
|
1812
|
+
withCredentials?: boolean;
|
|
1813
|
+
}): Observable<HttpResponse<string>>;
|
|
1814
|
+
/**
|
|
1815
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1816
|
+
* the response as an `ArrayBuffer`.
|
|
1817
|
+
*
|
|
1818
|
+
* @param url The endpoint URL.
|
|
1819
|
+
* @param body The resources to edit.
|
|
1820
|
+
* @param options HTTP options.
|
|
1821
|
+
*
|
|
1822
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1823
|
+
*/
|
|
1824
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1825
|
+
headers?: HttpHeaders | {
|
|
1826
|
+
[header: string]: string | string[];
|
|
1827
|
+
};
|
|
1828
|
+
observe: "response";
|
|
1829
|
+
context?: HttpContext;
|
|
1830
|
+
params?: HttpParams | TParams | undefined;
|
|
1831
|
+
reportProgress?: boolean;
|
|
1832
|
+
responseType?: "json";
|
|
1833
|
+
withCredentials?: boolean;
|
|
1834
|
+
}): Observable<HttpResponse<Object>>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1837
|
+
* the response as an `ArrayBuffer`.
|
|
1838
|
+
*
|
|
1839
|
+
* @param url The endpoint URL.
|
|
1840
|
+
* @param body The resources to edit.
|
|
1841
|
+
* @param options HTTP options.
|
|
1842
|
+
*
|
|
1843
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1844
|
+
*/
|
|
1845
|
+
patch<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1846
|
+
headers?: HttpHeaders | {
|
|
1847
|
+
[header: string]: string | string[];
|
|
1848
|
+
};
|
|
1849
|
+
observe: "response";
|
|
1850
|
+
context?: HttpContext;
|
|
1851
|
+
params?: HttpParams | TParams | undefined;
|
|
1852
|
+
reportProgress?: boolean;
|
|
1853
|
+
responseType?: "json";
|
|
1854
|
+
withCredentials?: boolean;
|
|
1855
|
+
}): Observable<HttpResponse<TRes>>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1858
|
+
* the response as an `ArrayBuffer`.
|
|
1859
|
+
*
|
|
1860
|
+
* @param url The endpoint URL.
|
|
1861
|
+
* @param body The resources to edit.
|
|
1862
|
+
* @param options HTTP options.
|
|
1863
|
+
*
|
|
1864
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1865
|
+
*/
|
|
1866
|
+
patch<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
1867
|
+
headers?: HttpHeaders | {
|
|
1868
|
+
[header: string]: string | string[];
|
|
1869
|
+
};
|
|
1870
|
+
context?: HttpContext;
|
|
1871
|
+
observe?: "body";
|
|
1872
|
+
params?: HttpParams | TParams | undefined;
|
|
1873
|
+
reportProgress?: boolean;
|
|
1874
|
+
responseType?: "json";
|
|
1875
|
+
withCredentials?: boolean;
|
|
1876
|
+
} | undefined): Observable<Object>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
|
|
1879
|
+
* the response as an `ArrayBuffer`.
|
|
1880
|
+
*
|
|
1881
|
+
* @param url The endpoint URL.
|
|
1882
|
+
* @param body The resources to edit.
|
|
1883
|
+
* @param options HTTP options.
|
|
1884
|
+
*
|
|
1885
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1886
|
+
*/
|
|
1887
|
+
patch<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
1888
|
+
headers?: HttpHeaders | {
|
|
1889
|
+
[header: string]: string | string[];
|
|
1890
|
+
};
|
|
1891
|
+
context?: HttpContext;
|
|
1892
|
+
observe?: "body";
|
|
1893
|
+
params?: HttpParams | TParams | undefined;
|
|
1894
|
+
reportProgress?: boolean;
|
|
1895
|
+
responseType?: "json";
|
|
1896
|
+
withCredentials?: boolean;
|
|
1897
|
+
} | undefined): Observable<TRes>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
1900
|
+
* an `ArrayBuffer`.
|
|
1901
|
+
*
|
|
1902
|
+
* @param url The endpoint URL.
|
|
1903
|
+
* @param body The content to replace with.
|
|
1904
|
+
* @param options HTTP options.
|
|
1905
|
+
*
|
|
1906
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1907
|
+
*/
|
|
1908
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1909
|
+
headers?: HttpHeaders | {
|
|
1910
|
+
[header: string]: string | string[];
|
|
1911
|
+
};
|
|
1912
|
+
context?: HttpContext;
|
|
1913
|
+
observe?: "body";
|
|
1914
|
+
params?: HttpParams | TParams | undefined;
|
|
1915
|
+
reportProgress?: boolean;
|
|
1916
|
+
responseType: "arraybuffer";
|
|
1917
|
+
withCredentials?: boolean;
|
|
1918
|
+
transferCache?: {
|
|
1919
|
+
includeHeaders?: string[];
|
|
1920
|
+
} | boolean;
|
|
1921
|
+
}): Observable<ArrayBuffer>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
1924
|
+
* an `ArrayBuffer`.
|
|
1925
|
+
*
|
|
1926
|
+
* @param url The endpoint URL.
|
|
1927
|
+
* @param body The content to replace with.
|
|
1928
|
+
* @param options HTTP options.
|
|
1929
|
+
*
|
|
1930
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1931
|
+
*/
|
|
1932
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1933
|
+
headers?: HttpHeaders | {
|
|
1934
|
+
[header: string]: string | string[];
|
|
1935
|
+
};
|
|
1936
|
+
context?: HttpContext;
|
|
1937
|
+
observe?: "body";
|
|
1938
|
+
params?: HttpParams | TParams | undefined;
|
|
1939
|
+
reportProgress?: boolean;
|
|
1940
|
+
responseType: "blob";
|
|
1941
|
+
withCredentials?: boolean;
|
|
1942
|
+
transferCache?: {
|
|
1943
|
+
includeHeaders?: string[];
|
|
1944
|
+
} | boolean;
|
|
1945
|
+
}): Observable<Blob>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
1948
|
+
* an `ArrayBuffer`.
|
|
1949
|
+
*
|
|
1950
|
+
* @param url The endpoint URL.
|
|
1951
|
+
* @param body The content to replace with.
|
|
1952
|
+
* @param options HTTP options.
|
|
1953
|
+
*
|
|
1954
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1955
|
+
*/
|
|
1956
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1957
|
+
headers?: HttpHeaders | {
|
|
1958
|
+
[header: string]: string | string[];
|
|
1959
|
+
};
|
|
1960
|
+
context?: HttpContext;
|
|
1961
|
+
observe?: "body";
|
|
1962
|
+
params?: HttpParams | TParams | undefined;
|
|
1963
|
+
reportProgress?: boolean;
|
|
1964
|
+
responseType: "text";
|
|
1965
|
+
withCredentials?: boolean;
|
|
1966
|
+
transferCache?: {
|
|
1967
|
+
includeHeaders?: string[];
|
|
1968
|
+
} | boolean;
|
|
1969
|
+
}): Observable<string>;
|
|
1970
|
+
/**
|
|
1971
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
1972
|
+
* an `ArrayBuffer`.
|
|
1973
|
+
*
|
|
1974
|
+
* @param url The endpoint URL.
|
|
1975
|
+
* @param body The content to replace with.
|
|
1976
|
+
* @param options HTTP options.
|
|
1977
|
+
*
|
|
1978
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
1979
|
+
*/
|
|
1980
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
1981
|
+
headers?: HttpHeaders | {
|
|
1982
|
+
[header: string]: string | string[];
|
|
1983
|
+
};
|
|
1984
|
+
observe: "events";
|
|
1985
|
+
context?: HttpContext;
|
|
1986
|
+
params?: HttpParams | TParams | undefined;
|
|
1987
|
+
reportProgress?: boolean;
|
|
1988
|
+
responseType: "arraybuffer";
|
|
1989
|
+
withCredentials?: boolean;
|
|
1990
|
+
transferCache?: {
|
|
1991
|
+
includeHeaders?: string[];
|
|
1992
|
+
} | boolean;
|
|
1993
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
1996
|
+
* an `ArrayBuffer`.
|
|
1997
|
+
*
|
|
1998
|
+
* @param url The endpoint URL.
|
|
1999
|
+
* @param body The content to replace with.
|
|
2000
|
+
* @param options HTTP options.
|
|
2001
|
+
*
|
|
2002
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2003
|
+
*/
|
|
2004
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2005
|
+
headers?: HttpHeaders | {
|
|
2006
|
+
[header: string]: string | string[];
|
|
2007
|
+
};
|
|
2008
|
+
observe: "events";
|
|
2009
|
+
context?: HttpContext;
|
|
2010
|
+
params?: HttpParams | TParams | undefined;
|
|
2011
|
+
reportProgress?: boolean;
|
|
2012
|
+
responseType: "blob";
|
|
2013
|
+
withCredentials?: boolean;
|
|
2014
|
+
transferCache?: {
|
|
2015
|
+
includeHeaders?: string[];
|
|
2016
|
+
} | boolean;
|
|
2017
|
+
}): Observable<HttpEvent<Blob>>;
|
|
2018
|
+
/**
|
|
2019
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2020
|
+
* an `ArrayBuffer`.
|
|
2021
|
+
*
|
|
2022
|
+
* @param url The endpoint URL.
|
|
2023
|
+
* @param body The content to replace with.
|
|
2024
|
+
* @param options HTTP options.
|
|
2025
|
+
*
|
|
2026
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2027
|
+
*/
|
|
2028
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2029
|
+
headers?: HttpHeaders | {
|
|
2030
|
+
[header: string]: string | string[];
|
|
2031
|
+
};
|
|
2032
|
+
observe: "events";
|
|
2033
|
+
context?: HttpContext;
|
|
2034
|
+
params?: HttpParams | TParams | undefined;
|
|
2035
|
+
reportProgress?: boolean;
|
|
2036
|
+
responseType: "text";
|
|
2037
|
+
withCredentials?: boolean;
|
|
2038
|
+
transferCache?: {
|
|
2039
|
+
includeHeaders?: string[];
|
|
2040
|
+
} | boolean;
|
|
2041
|
+
}): Observable<HttpEvent<string>>;
|
|
2042
|
+
/**
|
|
2043
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2044
|
+
* an `ArrayBuffer`.
|
|
2045
|
+
*
|
|
2046
|
+
* @param url The endpoint URL.
|
|
2047
|
+
* @param body The content to replace with.
|
|
2048
|
+
* @param options HTTP options.
|
|
2049
|
+
*
|
|
2050
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2051
|
+
*/
|
|
2052
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2053
|
+
headers?: HttpHeaders | {
|
|
2054
|
+
[header: string]: string | string[];
|
|
2055
|
+
};
|
|
2056
|
+
observe: "events";
|
|
2057
|
+
context?: HttpContext;
|
|
2058
|
+
params?: HttpParams | TParams | undefined;
|
|
2059
|
+
reportProgress?: boolean;
|
|
2060
|
+
responseType?: "json";
|
|
2061
|
+
withCredentials?: boolean;
|
|
2062
|
+
transferCache?: {
|
|
2063
|
+
includeHeaders?: string[];
|
|
2064
|
+
} | boolean;
|
|
2065
|
+
}): Observable<HttpEvent<Object>>;
|
|
2066
|
+
/**
|
|
2067
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2068
|
+
* an `ArrayBuffer`.
|
|
2069
|
+
*
|
|
2070
|
+
* @param url The endpoint URL.
|
|
2071
|
+
* @param body The content to replace with.
|
|
2072
|
+
* @param options HTTP options.
|
|
2073
|
+
*
|
|
2074
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2075
|
+
*/
|
|
2076
|
+
post<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2077
|
+
headers?: HttpHeaders | {
|
|
2078
|
+
[header: string]: string | string[];
|
|
2079
|
+
};
|
|
2080
|
+
observe: "events";
|
|
2081
|
+
context?: HttpContext;
|
|
2082
|
+
params?: HttpParams | TParams | undefined;
|
|
2083
|
+
reportProgress?: boolean;
|
|
2084
|
+
responseType?: "json";
|
|
2085
|
+
withCredentials?: boolean;
|
|
2086
|
+
transferCache?: {
|
|
2087
|
+
includeHeaders?: string[];
|
|
2088
|
+
} | boolean;
|
|
2089
|
+
}): Observable<HttpEvent<TRes>>;
|
|
2090
|
+
/**
|
|
2091
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2092
|
+
* an `ArrayBuffer`.
|
|
2093
|
+
*
|
|
2094
|
+
* @param url The endpoint URL.
|
|
2095
|
+
* @param body The content to replace with.
|
|
2096
|
+
* @param options HTTP options.
|
|
2097
|
+
*
|
|
2098
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2099
|
+
*/
|
|
2100
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2101
|
+
headers?: HttpHeaders | {
|
|
2102
|
+
[header: string]: string | string[];
|
|
2103
|
+
};
|
|
2104
|
+
observe: "response";
|
|
2105
|
+
context?: HttpContext;
|
|
2106
|
+
params?: HttpParams | TParams | undefined;
|
|
2107
|
+
reportProgress?: boolean;
|
|
2108
|
+
responseType: "arraybuffer";
|
|
2109
|
+
withCredentials?: boolean;
|
|
2110
|
+
transferCache?: {
|
|
2111
|
+
includeHeaders?: string[];
|
|
2112
|
+
} | boolean;
|
|
2113
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
2114
|
+
/**
|
|
2115
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2116
|
+
* an `ArrayBuffer`.
|
|
2117
|
+
*
|
|
2118
|
+
* @param url The endpoint URL.
|
|
2119
|
+
* @param body The content to replace with.
|
|
2120
|
+
* @param options HTTP options.
|
|
2121
|
+
*
|
|
2122
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2123
|
+
*/
|
|
2124
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2125
|
+
headers?: HttpHeaders | {
|
|
2126
|
+
[header: string]: string | string[];
|
|
2127
|
+
};
|
|
2128
|
+
observe: "response";
|
|
2129
|
+
context?: HttpContext;
|
|
2130
|
+
params?: HttpParams | TParams | undefined;
|
|
2131
|
+
reportProgress?: boolean;
|
|
2132
|
+
responseType: "blob";
|
|
2133
|
+
withCredentials?: boolean;
|
|
2134
|
+
transferCache?: {
|
|
2135
|
+
includeHeaders?: string[];
|
|
2136
|
+
} | boolean;
|
|
2137
|
+
}): Observable<HttpResponse<Blob>>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2140
|
+
* an `ArrayBuffer`.
|
|
2141
|
+
*
|
|
2142
|
+
* @param url The endpoint URL.
|
|
2143
|
+
* @param body The content to replace with.
|
|
2144
|
+
* @param options HTTP options.
|
|
2145
|
+
*
|
|
2146
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2147
|
+
*/
|
|
2148
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2149
|
+
headers?: HttpHeaders | {
|
|
2150
|
+
[header: string]: string | string[];
|
|
2151
|
+
};
|
|
2152
|
+
observe: "response";
|
|
2153
|
+
context?: HttpContext;
|
|
2154
|
+
params?: HttpParams | TParams | undefined;
|
|
2155
|
+
reportProgress?: boolean;
|
|
2156
|
+
responseType: "text";
|
|
2157
|
+
withCredentials?: boolean;
|
|
2158
|
+
transferCache?: {
|
|
2159
|
+
includeHeaders?: string[];
|
|
2160
|
+
} | boolean;
|
|
2161
|
+
}): Observable<HttpResponse<string>>;
|
|
2162
|
+
/**
|
|
2163
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2164
|
+
* an `ArrayBuffer`.
|
|
2165
|
+
*
|
|
2166
|
+
* @param url The endpoint URL.
|
|
2167
|
+
* @param body The content to replace with.
|
|
2168
|
+
* @param options HTTP options.
|
|
2169
|
+
*
|
|
2170
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2171
|
+
*/
|
|
2172
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2173
|
+
headers?: HttpHeaders | {
|
|
2174
|
+
[header: string]: string | string[];
|
|
2175
|
+
};
|
|
2176
|
+
observe: "response";
|
|
2177
|
+
context?: HttpContext;
|
|
2178
|
+
params?: HttpParams | TParams | undefined;
|
|
2179
|
+
reportProgress?: boolean;
|
|
2180
|
+
responseType?: "json";
|
|
2181
|
+
withCredentials?: boolean;
|
|
2182
|
+
transferCache?: {
|
|
2183
|
+
includeHeaders?: string[];
|
|
2184
|
+
} | boolean;
|
|
2185
|
+
}): Observable<HttpResponse<Object>>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2188
|
+
* an `ArrayBuffer`.
|
|
2189
|
+
*
|
|
2190
|
+
* @param url The endpoint URL.
|
|
2191
|
+
* @param body The content to replace with.
|
|
2192
|
+
* @param options HTTP options.
|
|
2193
|
+
*
|
|
2194
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2195
|
+
*/
|
|
2196
|
+
post<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2197
|
+
headers?: HttpHeaders | {
|
|
2198
|
+
[header: string]: string | string[];
|
|
2199
|
+
};
|
|
2200
|
+
observe: "response";
|
|
2201
|
+
context?: HttpContext;
|
|
2202
|
+
params?: HttpParams | TParams | undefined;
|
|
2203
|
+
reportProgress?: boolean;
|
|
2204
|
+
responseType?: "json";
|
|
2205
|
+
withCredentials?: boolean;
|
|
2206
|
+
transferCache?: {
|
|
2207
|
+
includeHeaders?: string[];
|
|
2208
|
+
} | boolean;
|
|
2209
|
+
}): Observable<HttpResponse<TRes>>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2212
|
+
* an `ArrayBuffer`.
|
|
2213
|
+
*
|
|
2214
|
+
* @param url The endpoint URL.
|
|
2215
|
+
* @param body The content to replace with.
|
|
2216
|
+
* @param options HTTP options.
|
|
2217
|
+
*
|
|
2218
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2219
|
+
*/
|
|
2220
|
+
post<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
2221
|
+
headers?: HttpHeaders | {
|
|
2222
|
+
[header: string]: string | string[];
|
|
2223
|
+
};
|
|
2224
|
+
context?: HttpContext;
|
|
2225
|
+
observe?: "body";
|
|
2226
|
+
params?: HttpParams | TParams | undefined;
|
|
2227
|
+
reportProgress?: boolean;
|
|
2228
|
+
responseType?: "json";
|
|
2229
|
+
withCredentials?: boolean;
|
|
2230
|
+
transferCache?: {
|
|
2231
|
+
includeHeaders?: string[];
|
|
2232
|
+
} | boolean;
|
|
2233
|
+
} | undefined): Observable<Object>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
|
|
2236
|
+
* an `ArrayBuffer`.
|
|
2237
|
+
*
|
|
2238
|
+
* @param url The endpoint URL.
|
|
2239
|
+
* @param body The content to replace with.
|
|
2240
|
+
* @param options HTTP options.
|
|
2241
|
+
*
|
|
2242
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2243
|
+
*/
|
|
2244
|
+
post<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
2245
|
+
headers?: HttpHeaders | {
|
|
2246
|
+
[header: string]: string | string[];
|
|
2247
|
+
};
|
|
2248
|
+
context?: HttpContext;
|
|
2249
|
+
observe?: "body";
|
|
2250
|
+
params?: HttpParams | TParams | undefined;
|
|
2251
|
+
reportProgress?: boolean;
|
|
2252
|
+
responseType?: "json";
|
|
2253
|
+
withCredentials?: boolean;
|
|
2254
|
+
transferCache?: {
|
|
2255
|
+
includeHeaders?: string[];
|
|
2256
|
+
} | boolean;
|
|
2257
|
+
} | undefined): Observable<TRes>;
|
|
2258
|
+
/**
|
|
2259
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2260
|
+
* response as an `ArrayBuffer`.
|
|
2261
|
+
*
|
|
2262
|
+
* @param url The endpoint URL.
|
|
2263
|
+
* @param body The resources to add/update.
|
|
2264
|
+
* @param options HTTP options.
|
|
2265
|
+
*
|
|
2266
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2267
|
+
*/
|
|
2268
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2269
|
+
headers?: HttpHeaders | {
|
|
2270
|
+
[header: string]: string | string[];
|
|
2271
|
+
};
|
|
2272
|
+
context?: HttpContext;
|
|
2273
|
+
observe?: "body";
|
|
2274
|
+
params?: HttpParams | TParams | undefined;
|
|
2275
|
+
reportProgress?: boolean;
|
|
2276
|
+
responseType: "arraybuffer";
|
|
2277
|
+
withCredentials?: boolean;
|
|
2278
|
+
}): Observable<ArrayBuffer>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2281
|
+
* response as an `ArrayBuffer`.
|
|
2282
|
+
*
|
|
2283
|
+
* @param url The endpoint URL.
|
|
2284
|
+
* @param body The resources to add/update.
|
|
2285
|
+
* @param options HTTP options.
|
|
2286
|
+
*
|
|
2287
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2288
|
+
*/
|
|
2289
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2290
|
+
headers?: HttpHeaders | {
|
|
2291
|
+
[header: string]: string | string[];
|
|
2292
|
+
};
|
|
2293
|
+
context?: HttpContext;
|
|
2294
|
+
observe?: "body";
|
|
2295
|
+
params?: HttpParams | TParams | undefined;
|
|
2296
|
+
reportProgress?: boolean;
|
|
2297
|
+
responseType: "blob";
|
|
2298
|
+
withCredentials?: boolean;
|
|
2299
|
+
}): Observable<Blob>;
|
|
2300
|
+
/**
|
|
2301
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2302
|
+
* response as an `ArrayBuffer`.
|
|
2303
|
+
*
|
|
2304
|
+
* @param url The endpoint URL.
|
|
2305
|
+
* @param body The resources to add/update.
|
|
2306
|
+
* @param options HTTP options.
|
|
2307
|
+
*
|
|
2308
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2309
|
+
*/
|
|
2310
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2311
|
+
headers?: HttpHeaders | {
|
|
2312
|
+
[header: string]: string | string[];
|
|
2313
|
+
};
|
|
2314
|
+
context?: HttpContext;
|
|
2315
|
+
observe?: "body";
|
|
2316
|
+
params?: HttpParams | TParams | undefined;
|
|
2317
|
+
reportProgress?: boolean;
|
|
2318
|
+
responseType: "text";
|
|
2319
|
+
withCredentials?: boolean;
|
|
2320
|
+
}): Observable<string>;
|
|
2321
|
+
/**
|
|
2322
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2323
|
+
* response as an `ArrayBuffer`.
|
|
2324
|
+
*
|
|
2325
|
+
* @param url The endpoint URL.
|
|
2326
|
+
* @param body The resources to add/update.
|
|
2327
|
+
* @param options HTTP options.
|
|
2328
|
+
*
|
|
2329
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2330
|
+
*/
|
|
2331
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2332
|
+
headers?: HttpHeaders | {
|
|
2333
|
+
[header: string]: string | string[];
|
|
2334
|
+
};
|
|
2335
|
+
observe: "events";
|
|
2336
|
+
context?: HttpContext;
|
|
2337
|
+
params?: HttpParams | TParams | undefined;
|
|
2338
|
+
reportProgress?: boolean;
|
|
2339
|
+
responseType: "arraybuffer";
|
|
2340
|
+
withCredentials?: boolean;
|
|
2341
|
+
}): Observable<HttpEvent<ArrayBuffer>>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2344
|
+
* response as an `ArrayBuffer`.
|
|
2345
|
+
*
|
|
2346
|
+
* @param url The endpoint URL.
|
|
2347
|
+
* @param body The resources to add/update.
|
|
2348
|
+
* @param options HTTP options.
|
|
2349
|
+
*
|
|
2350
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2351
|
+
*/
|
|
2352
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2353
|
+
headers?: HttpHeaders | {
|
|
2354
|
+
[header: string]: string | string[];
|
|
2355
|
+
};
|
|
2356
|
+
observe: "events";
|
|
2357
|
+
context?: HttpContext;
|
|
2358
|
+
params?: HttpParams | TParams | undefined;
|
|
2359
|
+
reportProgress?: boolean;
|
|
2360
|
+
responseType: "blob";
|
|
2361
|
+
withCredentials?: boolean;
|
|
2362
|
+
}): Observable<HttpEvent<Blob>>;
|
|
2363
|
+
/**
|
|
2364
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2365
|
+
* response as an `ArrayBuffer`.
|
|
2366
|
+
*
|
|
2367
|
+
* @param url The endpoint URL.
|
|
2368
|
+
* @param body The resources to add/update.
|
|
2369
|
+
* @param options HTTP options.
|
|
2370
|
+
*
|
|
2371
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2372
|
+
*/
|
|
2373
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2374
|
+
headers?: HttpHeaders | {
|
|
2375
|
+
[header: string]: string | string[];
|
|
2376
|
+
};
|
|
2377
|
+
observe: "events";
|
|
2378
|
+
context?: HttpContext;
|
|
2379
|
+
params?: HttpParams | TParams | undefined;
|
|
2380
|
+
reportProgress?: boolean;
|
|
2381
|
+
responseType: "text";
|
|
2382
|
+
withCredentials?: boolean;
|
|
2383
|
+
}): Observable<HttpEvent<string>>;
|
|
2384
|
+
/**
|
|
2385
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2386
|
+
* response as an `ArrayBuffer`.
|
|
2387
|
+
*
|
|
2388
|
+
* @param url The endpoint URL.
|
|
2389
|
+
* @param body The resources to add/update.
|
|
2390
|
+
* @param options HTTP options.
|
|
2391
|
+
*
|
|
2392
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2393
|
+
*/
|
|
2394
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2395
|
+
headers?: HttpHeaders | {
|
|
2396
|
+
[header: string]: string | string[];
|
|
2397
|
+
};
|
|
2398
|
+
observe: "events";
|
|
2399
|
+
context?: HttpContext;
|
|
2400
|
+
params?: HttpParams | TParams | undefined;
|
|
2401
|
+
reportProgress?: boolean;
|
|
2402
|
+
responseType?: "json";
|
|
2403
|
+
withCredentials?: boolean;
|
|
2404
|
+
}): Observable<HttpEvent<Object>>;
|
|
2405
|
+
/**
|
|
2406
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2407
|
+
* response as an `ArrayBuffer`.
|
|
2408
|
+
*
|
|
2409
|
+
* @param url The endpoint URL.
|
|
2410
|
+
* @param body The resources to add/update.
|
|
2411
|
+
* @param options HTTP options.
|
|
2412
|
+
*
|
|
2413
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2414
|
+
*/
|
|
2415
|
+
put<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2416
|
+
headers?: HttpHeaders | {
|
|
2417
|
+
[header: string]: string | string[];
|
|
2418
|
+
};
|
|
2419
|
+
observe: "events";
|
|
2420
|
+
context?: HttpContext;
|
|
2421
|
+
params?: HttpParams | TParams | undefined;
|
|
2422
|
+
reportProgress?: boolean;
|
|
2423
|
+
responseType?: "json";
|
|
2424
|
+
withCredentials?: boolean;
|
|
2425
|
+
}): Observable<HttpEvent<TRes>>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2428
|
+
* response as an `ArrayBuffer`.
|
|
2429
|
+
*
|
|
2430
|
+
* @param url The endpoint URL.
|
|
2431
|
+
* @param body The resources to add/update.
|
|
2432
|
+
* @param options HTTP options.
|
|
2433
|
+
*
|
|
2434
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2435
|
+
*/
|
|
2436
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2437
|
+
headers?: HttpHeaders | {
|
|
2438
|
+
[header: string]: string | string[];
|
|
2439
|
+
};
|
|
2440
|
+
observe: "response";
|
|
2441
|
+
context?: HttpContext;
|
|
2442
|
+
params?: HttpParams | TParams | undefined;
|
|
2443
|
+
reportProgress?: boolean;
|
|
2444
|
+
responseType: "arraybuffer";
|
|
2445
|
+
withCredentials?: boolean;
|
|
2446
|
+
}): Observable<HttpResponse<ArrayBuffer>>;
|
|
2447
|
+
/**
|
|
2448
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2449
|
+
* response as an `ArrayBuffer`.
|
|
2450
|
+
*
|
|
2451
|
+
* @param url The endpoint URL.
|
|
2452
|
+
* @param body The resources to add/update.
|
|
2453
|
+
* @param options HTTP options.
|
|
2454
|
+
*
|
|
2455
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2456
|
+
*/
|
|
2457
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2458
|
+
headers?: HttpHeaders | {
|
|
2459
|
+
[header: string]: string | string[];
|
|
2460
|
+
};
|
|
2461
|
+
observe: "response";
|
|
2462
|
+
context?: HttpContext;
|
|
2463
|
+
params?: HttpParams | TParams | undefined;
|
|
2464
|
+
reportProgress?: boolean;
|
|
2465
|
+
responseType: "blob";
|
|
2466
|
+
withCredentials?: boolean;
|
|
2467
|
+
}): Observable<HttpResponse<Blob>>;
|
|
2468
|
+
/**
|
|
2469
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2470
|
+
* response as an `ArrayBuffer`.
|
|
2471
|
+
*
|
|
2472
|
+
* @param url The endpoint URL.
|
|
2473
|
+
* @param body The resources to add/update.
|
|
2474
|
+
* @param options HTTP options.
|
|
2475
|
+
*
|
|
2476
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2477
|
+
*/
|
|
2478
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2479
|
+
headers?: HttpHeaders | {
|
|
2480
|
+
[header: string]: string | string[];
|
|
2481
|
+
};
|
|
2482
|
+
observe: "response";
|
|
2483
|
+
context?: HttpContext;
|
|
2484
|
+
params?: HttpParams | TParams | undefined;
|
|
2485
|
+
reportProgress?: boolean;
|
|
2486
|
+
responseType: "text";
|
|
2487
|
+
withCredentials?: boolean;
|
|
2488
|
+
}): Observable<HttpResponse<string>>;
|
|
2489
|
+
/**
|
|
2490
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2491
|
+
* response as an `ArrayBuffer`.
|
|
2492
|
+
*
|
|
2493
|
+
* @param url The endpoint URL.
|
|
2494
|
+
* @param body The resources to add/update.
|
|
2495
|
+
* @param options HTTP options.
|
|
2496
|
+
*
|
|
2497
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2498
|
+
*/
|
|
2499
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2500
|
+
headers?: HttpHeaders | {
|
|
2501
|
+
[header: string]: string | string[];
|
|
2502
|
+
};
|
|
2503
|
+
observe: "response";
|
|
2504
|
+
context?: HttpContext;
|
|
2505
|
+
params?: HttpParams | TParams | undefined;
|
|
2506
|
+
reportProgress?: boolean;
|
|
2507
|
+
responseType?: "json";
|
|
2508
|
+
withCredentials?: boolean;
|
|
2509
|
+
}): Observable<HttpResponse<Object>>;
|
|
2510
|
+
/**
|
|
2511
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2512
|
+
* response as an `ArrayBuffer`.
|
|
2513
|
+
*
|
|
2514
|
+
* @param url The endpoint URL.
|
|
2515
|
+
* @param body The resources to add/update.
|
|
2516
|
+
* @param options HTTP options.
|
|
2517
|
+
*
|
|
2518
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2519
|
+
*/
|
|
2520
|
+
put<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options: {
|
|
2521
|
+
headers?: HttpHeaders | {
|
|
2522
|
+
[header: string]: string | string[];
|
|
2523
|
+
};
|
|
2524
|
+
observe: "response";
|
|
2525
|
+
context?: HttpContext;
|
|
2526
|
+
params?: HttpParams | TParams | undefined;
|
|
2527
|
+
reportProgress?: boolean;
|
|
2528
|
+
responseType?: "json";
|
|
2529
|
+
withCredentials?: boolean;
|
|
2530
|
+
}): Observable<HttpResponse<TRes>>;
|
|
2531
|
+
/**
|
|
2532
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2533
|
+
* response as an `ArrayBuffer`.
|
|
2534
|
+
*
|
|
2535
|
+
* @param url The endpoint URL.
|
|
2536
|
+
* @param body The resources to add/update.
|
|
2537
|
+
* @param options HTTP options.
|
|
2538
|
+
*
|
|
2539
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2540
|
+
*/
|
|
2541
|
+
put<TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
2542
|
+
headers?: HttpHeaders | {
|
|
2543
|
+
[header: string]: string | string[];
|
|
2544
|
+
};
|
|
2545
|
+
context?: HttpContext;
|
|
2546
|
+
observe?: "body";
|
|
2547
|
+
params?: HttpParams | TParams | undefined;
|
|
2548
|
+
reportProgress?: boolean;
|
|
2549
|
+
responseType?: "json";
|
|
2550
|
+
withCredentials?: boolean;
|
|
2551
|
+
} | undefined): Observable<Object>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
|
|
2554
|
+
* response as an `ArrayBuffer`.
|
|
2555
|
+
*
|
|
2556
|
+
* @param url The endpoint URL.
|
|
2557
|
+
* @param body The resources to add/update.
|
|
2558
|
+
* @param options HTTP options.
|
|
2559
|
+
*
|
|
2560
|
+
* @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
|
|
2561
|
+
*/
|
|
2562
|
+
put<TRes, TBody = any, TParams extends ObjectHttpParams = ObjectHttpParams>(url: string | string[], body: TBody | null, options?: {
|
|
2563
|
+
headers?: HttpHeaders | {
|
|
2564
|
+
[header: string]: string | string[];
|
|
2565
|
+
};
|
|
2566
|
+
context?: HttpContext;
|
|
2567
|
+
observe?: "body";
|
|
2568
|
+
params?: HttpParams | TParams | undefined;
|
|
2569
|
+
reportProgress?: boolean;
|
|
2570
|
+
responseType?: "json";
|
|
2571
|
+
withCredentials?: boolean;
|
|
2572
|
+
} | undefined): Observable<TRes>;
|
|
2573
|
+
};
|
|
2574
|
+
};
|