填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

HttpXhrBackend

Uses XMLHttpRequest to send requests to a backend server.

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

参见

方法

Processes a request and returns a stream of response events.

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

The request object.

返回值

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