//okhttp/okhttp3/ResponseBody/bytes
bytes¶
[common]\ expect fun bytes(): ByteArray
Returns the response as a byte array.
This method loads entire response body into memory. If the response body is very large this may trigger an OutOfMemoryError. Prefer to stream the response body if this is a possibility for your response.