HttpXhrBackend

class

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()

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