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

HttpXhrBackend

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

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

Methods

Process a request and return a stream of response events.

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

Parameters

req

Type: HttpRequest.

Returns

Observable<HttpEvent<any>>