onProgress

abstract suspend fun onProgress(bytesSentTotal: Long, contentLength: Long?)(source)

Invokes every time some data is flushed through the ByteReadChannel.

Report a problem

Parameters

bytesSentTotal

number of transmitted bytes.

contentLength

body size. Can be null if the size is unknown.