ktor-client-core / io.ktor.client.request.forms / FormDataContent

FormDataContent

class FormDataContent : ByteArrayContent

OutgoingContent with for application/x-www-form-urlencoded formatted request.

Parameters

formData - : data to send.

Constructors

<init>

FormDataContent(formData: Parameters)

OutgoingContent with for application/x-www-form-urlencoded formatted request.

Properties

contentLength

val contentLength: Long

contentType

val contentType: ContentType

formData

val formData: Parameters

: data to send.

Functions

bytes

fun bytes(): ByteArray

Extension Functions

wrapHeaders

fun OutgoingContent.wrapHeaders(block: (Headers) -> Headers): OutgoingContent

Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block.