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>> }

方法

Process a request and return a stream of response events.

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

参数

req

Type: HttpRequest.

返回值

Observable<HttpEvent<any>>

注解

@Injectable()