ProgressListener

fun interface ProgressListener

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.

Functions

Link copied to clipboard
abstract suspend fun onProgress(bytesSentTotal: Long, contentLength: Long?)

Invokes every time some data is flushed through the ByteReadChannel.