HttpBackend

class

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

  • JsonpClientBackend
  • HttpXhrBackend

Members

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

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/common/http/HttpBackend