@univerjsnetworkclassesXhrhttpimplementation

@univerjs/network v0.5.0-beta.1Docs


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

XHRHTTPImplementation

Methods

send()

send(request): Observable<HTTPEvent<any>>

Send a request. The result would be returned in an observable for possible stream response.

Parameters

ParameterTypeDescription
requestHTTPRequestthe request to be sent

Returns

Observable<HTTPEvent<any>>

Implementation of

IHTTPImplementation.send

Defined in

submodules/univer/packages/network/src/services/http/implementations/xhr.ts:35