Provides a way to register a callback to be invoked one or multiple times during the download.
The callback receives the current progress as two arguments, the number of bytes downloaded and the total number of bytes to download.
Under the hood: this method adds a middleware to the chain that will intercept the response and replace the body with a new one that will emit the progress event.
Provides a way to register a callback to be invoked one or multiple times during the download. The callback receives the current progress as two arguments, the number of bytes downloaded and the total number of bytes to download.
Under the hood: this method adds a middleware to the chain that will intercept the response and replace the body with a new one that will emit the progress event.