FormPart

data class FormPart<T : Any>(val key: String, val value: T, val headers: Headers = Headers.Empty)

A multipart form item. Use it to build a form in client.

Parameters

key

multipart name

value
headers

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

Constructors

Link copied to clipboard
fun <T : Any> FormPart(key: String, value: T, headers: Headers = Headers.Empty)

Properties

Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
val value: T