UploadStreamRequestBody

class UploadStreamRequestBody(mediaType: String, file: File, onUploadProgress: (Int) -> Unit) : RequestBody

UploadStreamRequestBody is a helper class for tracking upload progress.

Since

1.5.0

See also

RequestBody
MediaType

Constructors

Link copied to clipboard
constructor(mediaType: String, file: File, onUploadProgress: (Int) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun contentLength(): Long
Link copied to clipboard
open override fun contentType(): MediaType?
Link copied to clipboard
open fun isDuplex(): Boolean
Link copied to clipboard
open fun isOneShot(): Boolean
Link copied to clipboard
open override fun writeTo(sink: BufferedSink)