FormBuilder
class FormBuilder
A form builder type used in the formData builder function.
Functions
Link copied to clipboard
Appends a form part.
Appends a pair key:ChannelProvider with optional headers.
Link copied to clipboard
inline fun FormBuilder.append(key: String, headers: Headers = Headers.Empty, size: Long? = null, crossinline bodyBuilder: Sink.() -> Unit)
Appends a form part with the specified key using bodyBuilder for its body.
fun FormBuilder.append(key: String, filename: String, contentType: ContentType? = null, size: Long? = null, bodyBuilder: Sink.() -> Unit)
Appends a form part with the specified key, filename, and optional contentType using bodyBuilder for its body.
Link copied to clipboard