HttpPart

data class HttpPart(    val name: String,     val body: Any,     val headers: HttpFields<Header> = HttpFields(),     val contentType: ContentType? = null,     val size: Long = -1L,     val submittedFileName: String? = null) : HttpPartPort

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: HttpFields<Header> = HttpFields(),     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: HttpFields<Header>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val size: Long
Link copied to clipboard
open override val submittedFileName: String? = null