ProgressCallback typedef

ProgressCallback = void Function(int count, int total)

A callback that can be used to report progress. count is the current count of bytes received / sent. total is the total count of bytes to receive / send. total might be -1 when it is unknown (e.g. missing Content-Length header).

Note: This is currently only implemented for byte(stream) requests and responses.

Implementation

typedef ProgressCallback = void Function(int count, int total);