This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

HttpBackend

npm Package @angular/common
Module import { HttpBackend } from '@angular/common/http';
Source common/http/src/backend.ts

Overview

      
      class HttpBackend implements HttpHandler {
  handle(req: HttpRequest<any>): Observable<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.

Subclasses

Members

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