@univerjs/network v0.5.0-beta.1 • Docs
Class: HTTPProgress
Progress event for HTTP request. Usually used for reporting download/upload progress or SSE streaming.
Implements
IHTTPEvent
Constructors
new HTTPProgress()
new HTTPProgress(
total,
loaded,
partialText?): HTTPProgress
Parameters
Parameter | Type | Description |
---|---|---|
total | undefined | number | Total number of bytes to download. Depending on the request or response, this may not be computable and thus may not be present. |
loaded | number | Number of bytes downloaded. |
partialText ? | string | The partial response body as downloaded so far. Only present if the responseType was text . |
Returns
Defined in
submodules/univer/packages/network/src/services/http/response.ts:66
Properties
Property | Modifier | Type | Default value | Description | Defined in |
---|---|---|---|---|---|
loaded | readonly | number | undefined | Number of bytes downloaded. | submodules/univer/packages/network/src/services/http/response.ts:76 |
partialText? | readonly | string | undefined | The partial response body as downloaded so far. Only present if the responseType was text . | submodules/univer/packages/network/src/services/http/response.ts:82 |
total | readonly | undefined | number | undefined | Total number of bytes to download. Depending on the request or response, this may not be computable and thus may not be present. | submodules/univer/packages/network/src/services/http/response.ts:71 |
type | readonly | DownloadProgress | HTTPEventType.DownloadProgress | - | submodules/univer/packages/network/src/services/http/response.ts:64 |