Interface HttpProgressEvent

Base interface for progress events.

interface HttpProgressEvent {
    loaded: number;
    total?: number;
    type: UploadProgress | DownloadProgress;
}

Hierarchy (View Summary)

Properties

Properties

loaded: number

Number of bytes uploaded or downloaded.

total?: number

Total number of bytes to upload or download. Depending on the request or response

Progress event type is either upload or download.