[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/http/HttpHandler [Back]  [Original]

HttpHandler Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common/http

HttpHandler

Class
stable

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

On this page

    arrow_upward_alt Back to the top

    API

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

    handle

    Observable<HttpEvent<any>>
    @paramreqHttpRequest<any>
    @returnsObservable<HttpEvent<any>>

    Description

    Transforms an HttpRequest into a stream of HttpEvents, 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.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page