readBytes

suspend fun HttpResponse.readBytes(count: Int): ByteArray

Reads exactly count bytes of the HttpResponse.content.


Reads the whole HttpResponse.content if Content-Length is specified. Otherwise, it just reads one byte.