HttpProgressEvent

From Get docs
< @angular/common‎ | httpAngular/docs/11/api/common/http/httpprogressevent


HttpProgressEvent

interface

Base interface for progress events.

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

Child interfaces

  • HttpDownloadProgressEvent
  • HttpUploadProgressEvent


Properties

Property Description
HttpEventType.UploadProgress Progress event type is either upload or download.
loaded: number Number of bytes uploaded or downloaded.
total?: number Total number of bytes to upload or download. Depending on the request or response, this may not be computable and thus may not be present.


© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/http/HttpProgressEvent