DefaultUpload

class DefaultUpload : Upload

An Upload that writes data from the provided content

If the content is a bufferedSource, the DefaultUpload will close it once uploaded If the content is a byteString, the DefaultUpload can be reused

Types

Builder
Link copied to clipboard
common
class Builder

Functions

writeTo
Link copied to clipboard
common
open override fun writeTo(sink: BufferedSink)
Writes the content of this request to sink.

Properties

contentLength
Link copied to clipboard
common
open override val contentLength: Long
Returns the number of bytes that will be written to sink in a call to .
contentType
Link copied to clipboard
common
open override val contentType: String
fileName
Link copied to clipboard
common
open override val fileName: String?
The fileName to send to the server.