source: trip-planner-front/node_modules/@angular/common/esm2015/http/src/client.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 165.5 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Injectable } from '@angular/core';
9import { of } from 'rxjs';
10import { concatMap, filter, map } from 'rxjs/operators';
11import { HttpHandler } from './backend';
12import { HttpHeaders } from './headers';
13import { HttpParams } from './params';
14import { HttpRequest } from './request';
15import { HttpResponse } from './response';
16/**
17 * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
18 * the given `body`. This function clones the object and adds the body.
19 *
20 * Note that the `responseType` *options* value is a String that identifies the
21 * single data type of the response.
22 * A single overload version of the method handles each response type.
23 * The value of `responseType` cannot be a union, as the combined signature could imply.
24 *
25 */
26function addBody(options, body) {
27 return {
28 body,
29 headers: options.headers,
30 context: options.context,
31 observe: options.observe,
32 params: options.params,
33 reportProgress: options.reportProgress,
34 responseType: options.responseType,
35 withCredentials: options.withCredentials,
36 };
37}
38/**
39 * Performs HTTP requests.
40 * This service is available as an injectable class, with methods to perform HTTP requests.
41 * Each request method has multiple signatures, and the return type varies based on
42 * the signature that is called (mainly the values of `observe` and `responseType`).
43 *
44 * Note that the `responseType` *options* value is a String that identifies the
45 * single data type of the response.
46 * A single overload version of the method handles each response type.
47 * The value of `responseType` cannot be a union, as the combined signature could imply.
48
49 *
50 * @usageNotes
51 * Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
52 *
53 * ### HTTP Request Example
54 *
55 * ```
56 * // GET heroes whose name contains search term
57 * searchHeroes(term: string): observable<Hero[]>{
58 *
59 * const params = new HttpParams({fromString: 'name=term'});
60 * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
61 * }
62 * ```
63 *
64 * Alternatively, the parameter string can be used without invoking HttpParams
65 * by directly joining to the URL.
66 * ```
67 * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});
68 * ```
69 *
70 *
71 * ### JSONP Example
72 * ```
73 * requestJsonp(url, callback = 'callback') {
74 * return this.httpClient.jsonp(this.heroesURL, callback);
75 * }
76 * ```
77 *
78 * ### PATCH Example
79 * ```
80 * // PATCH one of the heroes' name
81 * patchHero (id: number, heroName: string): Observable<{}> {
82 * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42
83 * return this.httpClient.patch(url, {name: heroName}, httpOptions)
84 * .pipe(catchError(this.handleError('patchHero')));
85 * }
86 * ```
87 *
88 * @see [HTTP Guide](guide/http)
89 * @see [HTTP Request](api/common/http/HttpRequest)
90 *
91 * @publicApi
92 */
93export class HttpClient {
94 constructor(handler) {
95 this.handler = handler;
96 }
97 /**
98 * Constructs an observable for a generic HTTP request that, when subscribed,
99 * fires the request through the chain of registered interceptors and on to the
100 * server.
101 *
102 * You can pass an `HttpRequest` directly as the only parameter. In this case,
103 * the call returns an observable of the raw `HttpEvent` stream.
104 *
105 * Alternatively you can pass an HTTP method as the first parameter,
106 * a URL string as the second, and an options hash containing the request body as the third.
107 * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
108 * type of returned observable.
109 * * The `responseType` value determines how a successful response body is parsed.
110 * * If `responseType` is the default `json`, you can pass a type interface for the resulting
111 * object as a type parameter to the call.
112 *
113 * The `observe` value determines the return type, according to what you are interested in
114 * observing.
115 * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
116 * progress events by default.
117 * * An `observe` value of response returns an observable of `HttpResponse<T>`,
118 * where the `T` parameter depends on the `responseType` and any optionally provided type
119 * parameter.
120 * * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
121 *
122 */
123 request(first, url, options = {}) {
124 let req;
125 // First, check whether the primary argument is an instance of `HttpRequest`.
126 if (first instanceof HttpRequest) {
127 // It is. The other arguments must be undefined (per the signatures) and can be
128 // ignored.
129 req = first;
130 }
131 else {
132 // It's a string, so it represents a URL. Construct a request based on it,
133 // and incorporate the remaining arguments (assuming `GET` unless a method is
134 // provided.
135 // Figure out the headers.
136 let headers = undefined;
137 if (options.headers instanceof HttpHeaders) {
138 headers = options.headers;
139 }
140 else {
141 headers = new HttpHeaders(options.headers);
142 }
143 // Sort out parameters.
144 let params = undefined;
145 if (!!options.params) {
146 if (options.params instanceof HttpParams) {
147 params = options.params;
148 }
149 else {
150 params = new HttpParams({ fromObject: options.params });
151 }
152 }
153 // Construct the request.
154 req = new HttpRequest(first, url, (options.body !== undefined ? options.body : null), {
155 headers,
156 context: options.context,
157 params,
158 reportProgress: options.reportProgress,
159 // By default, JSON is assumed to be returned for all calls.
160 responseType: options.responseType || 'json',
161 withCredentials: options.withCredentials,
162 });
163 }
164 // Start with an Observable.of() the initial request, and run the handler (which
165 // includes all interceptors) inside a concatMap(). This way, the handler runs
166 // inside an Observable chain, which causes interceptors to be re-run on every
167 // subscription (this also makes retries re-run the handler, including interceptors).
168 const events$ = of(req).pipe(concatMap((req) => this.handler.handle(req)));
169 // If coming via the API signature which accepts a previously constructed HttpRequest,
170 // the only option is to get the event stream. Otherwise, return the event stream if
171 // that is what was requested.
172 if (first instanceof HttpRequest || options.observe === 'events') {
173 return events$;
174 }
175 // The requested stream contains either the full response or the body. In either
176 // case, the first step is to filter the event stream to extract a stream of
177 // responses(s).
178 const res$ = events$.pipe(filter((event) => event instanceof HttpResponse));
179 // Decide which stream to return.
180 switch (options.observe || 'body') {
181 case 'body':
182 // The requested stream is the body. Map the response stream to the response
183 // body. This could be done more simply, but a misbehaving interceptor might
184 // transform the response body into a different format and ignore the requested
185 // responseType. Guard against this by validating that the response is of the
186 // requested type.
187 switch (req.responseType) {
188 case 'arraybuffer':
189 return res$.pipe(map((res) => {
190 // Validate that the body is an ArrayBuffer.
191 if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
192 throw new Error('Response is not an ArrayBuffer.');
193 }
194 return res.body;
195 }));
196 case 'blob':
197 return res$.pipe(map((res) => {
198 // Validate that the body is a Blob.
199 if (res.body !== null && !(res.body instanceof Blob)) {
200 throw new Error('Response is not a Blob.');
201 }
202 return res.body;
203 }));
204 case 'text':
205 return res$.pipe(map((res) => {
206 // Validate that the body is a string.
207 if (res.body !== null && typeof res.body !== 'string') {
208 throw new Error('Response is not a string.');
209 }
210 return res.body;
211 }));
212 case 'json':
213 default:
214 // No validation needed for JSON responses, as they can be of any type.
215 return res$.pipe(map((res) => res.body));
216 }
217 case 'response':
218 // The response stream was requested directly, so return it.
219 return res$;
220 default:
221 // Guard against new future observe types being added.
222 throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);
223 }
224 }
225 /**
226 * Constructs an observable that, when subscribed, causes the configured
227 * `DELETE` request to execute on the server. See the individual overloads for
228 * details on the return type.
229 *
230 * @param url The endpoint URL.
231 * @param options The HTTP options to send with the request.
232 *
233 */
234 delete(url, options = {}) {
235 return this.request('DELETE', url, options);
236 }
237 /**
238 * Constructs an observable that, when subscribed, causes the configured
239 * `GET` request to execute on the server. See the individual overloads for
240 * details on the return type.
241 */
242 get(url, options = {}) {
243 return this.request('GET', url, options);
244 }
245 /**
246 * Constructs an observable that, when subscribed, causes the configured
247 * `HEAD` request to execute on the server. The `HEAD` method returns
248 * meta information about the resource without transferring the
249 * resource itself. See the individual overloads for
250 * details on the return type.
251 */
252 head(url, options = {}) {
253 return this.request('HEAD', url, options);
254 }
255 /**
256 * Constructs an `Observable` that, when subscribed, causes a request with the special method
257 * `JSONP` to be dispatched via the interceptor pipeline.
258 * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
259 * API endpoints that don't support newer,
260 * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
261 * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
262 * requests even if the API endpoint is not located on the same domain (origin) as the client-side
263 * application making the request.
264 * The endpoint API must support JSONP callback for JSONP requests to work.
265 * The resource API returns the JSON response wrapped in a callback function.
266 * You can pass the callback function name as one of the query parameters.
267 * Note that JSONP requests can only be used with `GET` requests.
268 *
269 * @param url The resource URL.
270 * @param callbackParam The callback function name.
271 *
272 */
273 jsonp(url, callbackParam) {
274 return this.request('JSONP', url, {
275 params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
276 observe: 'body',
277 responseType: 'json',
278 });
279 }
280 /**
281 * Constructs an `Observable` that, when subscribed, causes the configured
282 * `OPTIONS` request to execute on the server. This method allows the client
283 * to determine the supported HTTP methods and other capabilities of an endpoint,
284 * without implying a resource action. See the individual overloads for
285 * details on the return type.
286 */
287 options(url, options = {}) {
288 return this.request('OPTIONS', url, options);
289 }
290 /**
291 * Constructs an observable that, when subscribed, causes the configured
292 * `PATCH` request to execute on the server. See the individual overloads for
293 * details on the return type.
294 */
295 patch(url, body, options = {}) {
296 return this.request('PATCH', url, addBody(options, body));
297 }
298 /**
299 * Constructs an observable that, when subscribed, causes the configured
300 * `POST` request to execute on the server. The server responds with the location of
301 * the replaced resource. See the individual overloads for
302 * details on the return type.
303 */
304 post(url, body, options = {}) {
305 return this.request('POST', url, addBody(options, body));
306 }
307 /**
308 * Constructs an observable that, when subscribed, causes the configured
309 * `PUT` request to execute on the server. The `PUT` method replaces an existing resource
310 * with a new set of values.
311 * See the individual overloads for details on the return type.
312 */
313 put(url, body, options = {}) {
314 return this.request('PUT', url, addBody(options, body));
315 }
316}
317HttpClient.decorators = [
318 { type: Injectable }
319];
320HttpClient.ctorParameters = () => [
321 { type: HttpHandler }
322];
323//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL2h0dHAvc3JjL2NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsVUFBV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ZmZlci4nKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICByZXR1cm4gcmVzLmJvZHk7XG4gICAgICAgICAgICB9KSk7XG4gICAgICAgICAgY2FzZSAnYmxvYic6XG4gICAgICAgICAgICByZXR1cm4gcmVzJC5waXBlKG1hcCgocmVzOiBIdHRwUmVzcG9uc2U8YW55PikgPT4ge1xuICAgICAgICAgICAgICAvLyBWYWxpZGF0ZSB0aGF0IHRoZSBib2R5IGlzIGEgQmxvYi5cbiAgICAgICAgICAgICAgaWYgKHJlcy5ib2R5ICE9PSBudWxsICYmICEocmVzLmJvZHkgaW5zdGFuY2VvZiBCbG9iKSkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignUmVzcG9uc2UgaXMgbm90IGEgQmxvYi4nKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICByZXR1cm4gcmVzLmJvZHk7XG4gICAgICAgICAgICB9KSk7XG4gICAgICAgICAgY2FzZSAndGV4dCc6XG4gICAgICAgICAgICByZXR1cm4gcmVzJC5waXBlKG1hcCgocmVzOiBIdHRwUmVzcG9uc2U8YW55PikgPT4ge1xuICAgICAgICAgICAgICAvLyBWYWxpZGF0ZSB0aGF0IHRoZSBib2R5IGlzIGEgc3RyaW5nLlxuICAgICAgICAgICAgICBpZiAocmVzLmJvZHkgIT09IG51bGwgJiYgdHlwZW9mIHJlcy5ib2R5ICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignUmVzcG9uc2UgaXMgbm90IGEgc3RyaW5nLicpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHJldHVybiByZXMuYm9keTtcbiAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICBjYXNlICdqc29uJzpcbiAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgLy8gTm8gdmFsaWRhdGlvbiBuZWVkZWQgZm9yIEpTT04gcmVzcG9uc2VzLCBhcyB0aGV5I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gaW5kaXZpZHVhbCBvdmVybG9hZHMgZm9yIGRldGFpbHMgb24gdGhlIHJldHVybiB0eXBlLlxuICAgKi9cbiAgcHV0KHVybDogc3RyaW5nLCBib2R5OiBhbnl8bnVsbCwgb3B0aW9uczoge1xuICAgIGhlYWRlcnM/OiBIdHRwSGVhZGVyc3x7W2hlYWRlcjogc3RyaW5nXTogc3RyaW5nIHwgc3RyaW5nW119LFxuICAgIGNvbnRleHQ/OiBIdHRwQ29udGV4dCxcbiAgICBvYnNlcnZlPzogJ2JvZHknfCdldmVudHMnfCdyZXNwb25zZScsXG4gICAgcGFyYW1zPzogSHR0cFBhcmFtc3xcbiAgICAgICAgICB7W3BhcmFtOiBzdHJpbmddOiBzdHJpbmcgfCBudW1iZXIgfCBib29sZWFuIHwgUmVhZG9ubHlBcnJheTxzdHJpbmd8bnVtYmVyfGJvb2xlYW4+fSxcbiAgICByZXBvcnRQcm9ncmVzcz86IGJvb2xlYW4sXG4gICAgcmVzcG9uc2VUeXBlPzogJ2FycmF5YnVmZmVyJ3wnYmxvYid8J2pzb24nfCd0ZXh0JyxcbiAgICB3aXRoQ3JlZGVudGlhbHM/OiBib29sZWFuLFxuICB9ID0ge30pOiBPYnNlcnZhYmxlPGFueT4ge1xuICAgIHJldHVybiB0aGlzLnJlcXVlc3Q8YW55PignUFVUJywgdXJsLCBhZGRCb2R5KG9wdGlvbnMsIGJvZHkpKTtcbiAgfVxufVxuIl19
Note: See TracBrowser for help on using the repository browser.