Core
HttpProgressEvent
Progress snapshot passed to upload and download callbacks.
@defjs/core · Type
Signature
interface HttpProgressEvent { readonly lengthComputable: boolean; readonly loaded: number; readonly total: number; }
Mirrors the ProgressEvent fields loaded, total, and lengthComputable.
loaded counts bytes read from the upload or download stream, not bytes
acknowledged by the server. Download bytes may already be decompressed.
Unknown lengths use total: 0 and lengthComputable: false. A download total
is computable only with a positive Content-Length and an absent or
identity Content-Encoding; compressed downloads, other encoded responses,
and bytes exceeding Content-Length have an unknown decoded length. A
streamed FormData upload also has an unknown total unless a valid explicit
Content-Length supplies it. Other unknown-length streams use the same
0 / false fields.
Members
Prop
Type
lengthComputable booleanloaded numbertotal number