DefaultUpload

class DefaultUpload : Upload

A default Upload that can upload from a wide variety of content

Types

Link copied to clipboard
class Builder

Functions

Link copied to clipboard
fun newBuilder(): DefaultUpload.Builder
Link copied to clipboard
open override fun writeTo(sink: BufferedSink)

Writes the content of this request to sink.

Properties

Link copied to clipboard
open override val contentLength: Long

Returns the number of bytes that will be written to sink in a call to .writeTo, or -1 if that count is unknown.

Link copied to clipboard
open override val contentType: String
Link copied to clipboard
open override val fileName: String?

The fileName to send to the server. Might be null