Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

HttpHandler

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>> }

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<any>
Returns

Observable<HttpEvent<any>>