FormDataContent

class FormDataContent(val formData: Parameters) : OutgoingContent.ByteArrayContent(source)

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

Example: Form parameters.

Report a problem

Parameters

formData

data to send.

Constructors

Link copied to clipboard
constructor(formData: Parameters)

Properties

Link copied to clipboard
open override val contentLength: Long
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
val formData: Parameters
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open val status: HttpStatusCode?

Functions

Link copied to clipboard
open override fun bytes(): ByteArray
Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open fun trailers(): Headers?
Link copied to clipboard
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.