HttpHandler
class
npm Package | @angular/common |
---|---|
Module | import { HttpHandler } from '@angular/common/http'; |
Source | common/http/src/backend.ts |
Overview
class HttpHandler { handle(req: HttpRequest<any>): Observable<HttpEvent<any>> }
Description
Transforms an HttpRequest
into a stream of HttpEvent
s, one of which will likely be a HttpResponse
.
HttpHandler
is injectable. When injected, the handler instance dispatches requests to the first interceptor in the chain, which dispatches to the second, etc, eventually reaching the HttpBackend
.
In an HttpInterceptor
, the HttpHandler
parameter is the next interceptor in the chain.
Subclasses
-
HttpBackend
-
JsonpClientBackend
-
HttpXhrBackend
-
Members
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/http/HttpHandler