HttpDownloadProgressEvent

下载进度事件。

A download progress event.

      
      interface HttpDownloadProgressEvent extends HttpProgressEvent {
  type: HttpEventType.DownloadProgress
  partialText?: string

  // 继承自 common/http/HttpProgressEvent
  type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress
  loaded: number
  total?: number
}
    

属性

属性说明
type: HttpEventType.DownloadProgress
partialText?: string

到目前为止已经下载的那部分响应体。

The partial response body as downloaded so far.

只有当 responseType 是 text 时才会出现。

Only present if the responseType was text.