trackedByteArrayBody

suspend fun HttpResponse.trackedByteArrayBody(category: NetworkUsageCategory): ByteArray(source)

Reads a binary response and records the number of bytes returned by Ktor.

Receiver

Ktor response whose binary body should be counted.

Author

Dmitriy Moroz

Parameters

category

Traffic bucket that should receive the response byte count.