EmptyBody

data object EmptyBody : Body<Unit> (source)

Body definition for requests or responses that must not carry content.

Properties

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

Codec responsible for the byte-level representation of the payload.

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

Preferred media type for the body, or null when the payload is not tied to a specific one.

Link copied to clipboard
open override val name: String

Short diagnostic name used in generated code and codec error messages.

Functions

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

Encodes value into its wire representation.