EmptyBody

data object EmptyBody : Body<Unit> (source)

Sentinel body representing the absence of content.

Properties

Link copied to clipboard
open override val codec: ByteArrayCodec<Unit>

Codec used to transform between payload instances and raw bytes.

Link copied to clipboard
open override val mediaType: MediaType? = null

Preferred media type for the body if known.

Link copied to clipboard
open override val name: String

Friendly name associated with the body, if provided.

Functions

Link copied to clipboard
open override fun bytes(value: Unit): ByteArray?

Encodes value into a ByteArray.