{ "id": "api/common/http/HttpProgressEvent", "title": "HttpProgressEvent", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpProgressEventlink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Base interface for progress events.

\n\n \n
\n \n \n
\n\ninterface HttpProgressEvent {\n type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress\n loaded: number\n total?: number\n}\n\n\n \n \n
\n

Child interfaceslink

\n \n\n\n\n\n
\n \n\n\n \n \n\n
\n\n \n\n \n \n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress\n \n \n

Progress event type is either upload or download.

\n\n \n
\n \n loaded: number\n \n \n

Number of bytes uploaded or downloaded.

\n\n \n
\n \n total?: number\n \n \n

Total number of bytes to upload or download. Depending on the request or\nresponse, this may not be computable and thus may not be present.

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }