Class: HTTPProgress
Defined in: submodules/univer/packages/network/src/services/http/response.ts:64
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
Defined in: submodules/univer/packages/network/src/services/http/response.ts:67
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
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:77 |
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:83 |
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:72 |
type | readonly | DownloadProgress | HTTPEventType.DownloadProgress | - | submodules/univer/packages/network/src/services/http/response.ts:65 |