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

HttpXhrBackend

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

Overview

      
      class HttpXhrBackend implements HttpBackend {
  constructor(xhrFactory: XhrFactory)
  handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
}
    

Description

An HttpBackend which uses the XMLHttpRequest API to send requests to a backend server.

Constructor

      
      constructor(xhrFactory: XhrFactory)
    

Members

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

Process a request and return a stream of response events.

Annotations

      
      @Injectable()