ktor-client-core / io.ktor.client.utils / EmptyContent

EmptyContent

object EmptyContent : NoContent

Concrete OutgoingContent without a payload.

Properties

contentLength

val contentLength: Long

Functions

toString

fun toString(): String

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.