Skip to content

Asynchronous HTTP progress report & Pause/Resume downloads #1340

@CaptainPRICE

Description

@CaptainPRICE

I would like to suggest to add a 'progress callback' to HTTP.

  1. Expose a couple of variables via 'progress callback', such as total file size (in bytes), transferred size (downloaded/uploaded size so far, in bytes), transfer rate (download/upload speed, in bytes/sec). And perhaps also approximate time left (in seconds), so that we don't have to do calculation manually.
  2. There's no way of stopping or even pausing/resuming a download/upload. Please consider implementing it.

I just tried to make HTTP downloader/uploader addon, but right now there's nothing more than 'completion callback', alone, is pretty limited functionality. I was aiming for something such as:
image

P.S. I know you may get the total file size by sending a HTTP HEAD request, but the thing is, a file might change between the two separate HTTP requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions