byteStream

abstract fun byteStream(): InputStream

Consume the body of the response as a byte stream.

This method provides the response body as an InputStream, allowing you to read the data as a stream of bytes. Caller is responsible for releasing the resources. Can be called only once.

Return

an InputStream representing the body of the response.