Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
3.2 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 | */
|
---|
8 | /**
|
---|
9 | * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
|
---|
10 | * `HttpResponse`.
|
---|
11 | *
|
---|
12 | * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
|
---|
13 | * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
|
---|
14 | * `HttpBackend`.
|
---|
15 | *
|
---|
16 | * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
|
---|
17 | *
|
---|
18 | * @publicApi
|
---|
19 | */
|
---|
20 | export class HttpHandler {
|
---|
21 | }
|
---|
22 | /**
|
---|
23 | * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
|
---|
24 | *
|
---|
25 | * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
|
---|
26 | *
|
---|
27 | * When injected, `HttpBackend` dispatches requests directly to the backend, without going
|
---|
28 | * through the interceptor chain.
|
---|
29 | *
|
---|
30 | * @publicApi
|
---|
31 | */
|
---|
32 | export class HttpBackend {
|
---|
33 | }
|
---|
34 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9odHRwL3NyYy9iYWNrZW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQU1IOzs7Ozs7Ozs7OztHQVdHO0FBQ0gsTUFB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