HttpBackend
class
A final HttpHandler which will dispatch the request via browser HTTP APIs to a backend.
abstract class HttpBackend implements HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
}
Subclasses
JsonpClientBackendHttpXhrBackend
Provided in
-
HttpClientModule ../testing/httpclienttestingmodule
HttpClientTestingModule
Description
Interceptors sit between the HttpClient interface and the HttpBackend.
When injected, HttpBackend dispatches requests directly to the backend, without going through the interceptor chain.
Methods
|
handle() | |||
|---|---|---|---|
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>Parameters
Returns
|
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/HttpBackend