angular / 11.2.14 / api / common / http / httpxhrbackend.html /

HttpXhrBackend

class

Uses XMLHttpRequest to send requests to a backend server.

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

See also

Provided in

Methods

Processes a request and returns a stream of response events.

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

Parameters
req HttpRequest

The request object.

Returns

Observable<HttpEvent<any>>: An observable of the response events.

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