ProgressListener

typealias ProgressListener = suspend (bytesSentTotal: Long, contentLength: Long?) -> Unit

Callback that can be registered to listen for upload/download progress

Parameters

bytesSentTotal

number of transmitted bytes

contentLength

body size. Can be null if the size is unknown