@univerjs/network v0.4.2 • Docs
Class: XHRHTTPImplementation
An HTTP implementation using XHR. HTTP service provided by this service could only be async (we do not support sync XHR now).
Implements
Constructors
new XHRHTTPImplementation()
new XHRHTTPImplementation(): XHRHTTPImplementation
Returns
Methods
send()
send(request): Observable<HTTPEvent<any>>
Send a request. The result would be returned in an observable for possible stream response.
Parameters
Parameter | Type | Description |
---|---|---|
request | HTTPRequest | the request to be sent |
Returns
Observable
<HTTPEvent
<any
>>
Implementation of
Defined in
packages/network/src/services/http/implementations/xhr.ts:35 (opens in a new tab)