formData

fun formData(vararg values: FormPart<*>): List<PartData>

Builds a multipart form from values.

Example: Upload a file.


fun formData(block: FormBuilder.() -> Unit): List<PartData>

Build multipart form using block function.