HttpHandler

From Get docs
< @angular/common‎ | httpAngular/docs/10/api/common/http/httphandler


HttpHandler

class

Transforms an HttpRequest into a stream of HttpEvents, one of which will likely be a HttpResponse.

See more...

abstract class HttpHandler {
  abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
}

Subclasses

  • HttpBackend
    • JsonpClientBackend
    • HttpXhrBackend


Description

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.

Methods

abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>

Parameters
req HttpRequest
Returns

Observable<HttpEvent<any>>



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/common/http/HttpHandler