Base interface for progress events.
API
interface HttpProgressEvent {
type: HttpEventType.UploadProgress | HttpEventType.DownloadProgress;
loaded: number;
total?: number | undefined;
}
type
HttpEventType.UploadProgress | HttpEventType.DownloadProgressProgress event type is either upload or download.
loaded
numberNumber of bytes uploaded or downloaded.
total
number | undefinedTotal number of bytes to upload or download. Depending on the request or response, this may not be computable and thus may not be present.