This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

HttpProgressEvent

npm Package @angular/common
Module import { HttpProgressEvent } from '@angular/common/http';
Source common/http/src/response.ts

Interface Overview

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

Description

Base interface for progress events.

Child Interfaces

Members

      
      type: HttpEventType.DownloadProgress | 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.