Progress handler function. It is only used if the
response body is written to a file. See details below.
Value
Deferred object.
Progress bars
http_get can report on the progress of the download, via the
on_progress argument. This is called with a list, with entries:
url: the specified url to download
handle: the curl handle of the request. This can be queried using
curl::handle_data() to get the response status_code, the final
URL (after redirections), timings, etc.
file: the file argument.
total: total bytes of the response. If this is unknown, it is set
to zero.