API Reference
@univerjs
@univerjs/network
classes
Xhrhttpimplementation

@univerjs/network v0.1.17Docs


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

packages/network/src/services/http/implementations/xhr.ts:35 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.