read

abstract suspend fun read(buffer: ByteArray): Int(source)

Reads up to buffer.size body bytes. Returns the count read, or -1 at the end of the body.

Throws

on network errors.