append

inline fun FormBuilder.append(
    key: String,
    headers: Headers = Headers.Empty,
    size: Long? = null,
    crossinline bodyBuilder: BytePacketBuilder.() -> Unit
): Unit

Append a form part with the specified key using bodyBuilder for it’s body.

fun FormBuilder.append(
    key: String,
    filename: String,
    contentType: ContentType? = null,
    size: Long? = null,
    bodyBuilder: BytePacketBuilder.() -> Unit
): Unit

Append a form part with the specified key, filename and optional contentType using bodyBuilder for it’s body.