FormPart

data class FormPart<T : Any>

Multipart form item. Use it to build form in client.

Parameters

key - multipart name

value - content, could be String, Number or Input

headers - part headers, note that some servers may fail if an unknown header provided

Constructors

<init>

FormPart(
    key: String,
    value: T,
    headers: Headers = Headers.Empty)

Multipart form item. Use it to build form in client.

Properties

headers

val headers: Headers

part headers, note that some servers may fail if an unknown header provided

key

val key: String

multipart name

value

val value: T

content, could be String, Number or Input