DownloadStreamResponseBody

class DownloadStreamResponseBody(mediaType: String, responseBody: ResponseBody, onDownloadProgress: (Int) -> Unit) : ResponseBody

DownloadStreamResponseBody is a helper class for tracking download progress.

Since

1.5.0

See also

ResponseBody
MediaType
ForwardingSource

Constructors

Link copied to clipboard
constructor(mediaType: String, responseBody: ResponseBody, onDownloadProgress: (Int) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun bytes(): ByteArray
Link copied to clipboard
Link copied to clipboard
fun byteString(): ByteString
Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun contentLength(): Long
Link copied to clipboard
open override fun contentType(): MediaType?
Link copied to clipboard
open override fun source(): BufferedSource
Link copied to clipboard
fun string(): String