HttpPart

data class HttpPart(val name: String, val body: Any, val headers: Headers = Headers(), val contentType: ContentType? = null, val size: Long = -1L, val submittedFileName: String? = null) : HttpBase

Constructors

Link copied to clipboard
fun HttpPart(name: String, value: String)
Link copied to clipboard
fun HttpPart(name: String, body: ByteArray, submittedFileName: String)
Link copied to clipboard
fun HttpPart(name: String, body: Any, headers: Headers = Headers(), contentType: ContentType? = null, size: Long = -1L, submittedFileName: String? = null)

Functions

Link copied to clipboard
open fun bodyString(): String

Properties

Link copied to clipboard
open override val body: Any
Link copied to clipboard
open override val contentType: ContentType? = null
Link copied to clipboard
open override val headers: Headers
Link copied to clipboard
val name: String
Link copied to clipboard
val size: Long
Link copied to clipboard
val submittedFileName: String? = null