append
inline fun FormBuilder.append(key: String, headers: Headers = Headers.Empty, size: Long? = null, crossinline bodyBuilder: Sink.() -> Unit)(source)
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)(source)
Appends a form part with the specified key, filename, and optional contentType using bodyBuilder for its body.
The filename is emitted as a quoted-string in the Content-Disposition: ...; filename=... header, matching the WHATWG HTML form-submission specification used by browsers, curl, OkHttp and other major clients.