W3cubDocs

/Angular

HttpBackend

A final HttpHandler which will dispatch the request via browser HTTP APIs to a backend.

API

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

handle

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

Description

A final HttpHandler which will dispatch the request via browser HTTP APIs to a backend.

Interceptors sit between the HttpClient interface and the HttpBackend.

When injected, HttpBackend dispatches requests directly to the backend, without going through the interceptor chain.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/common/http/HttpBackend