linkHttpXhrBackend
npm Package | @angular/common |
---|---|
Module | import { HttpXhrBackend } from '@angular/common/http'; |
Source | common/http/src/xhr.ts |
linkOverview
class HttpXhrBackend implements HttpBackend {
constructor(xhrFactory: XhrFactory)
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
}
linkDescription
An HttpBackend
which uses the XMLHttpRequest API to send
requests to a backend server.
linkConstructor
constructor(xhrFactory: XhrFactory)
linkMembers
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
Process a request and return a stream of response events.
linkAnnotations
@Injectable()