Header

sealed interface Header<H : Any>(source)

Describes an HTTP header definition used by Tapik endpoints.

Inheritors

Types

Link copied to clipboard

Factory helpers and predefined header constants.

Properties

Link copied to clipboard
abstract val codec: StringCodec<H>

Codec responsible for encoding and decoding header values.

Link copied to clipboard
abstract val name: String

Canonical HTTP header name.

Link copied to clipboard
abstract val required: Boolean

Indicates whether the header is required on the wire.

Functions

Link copied to clipboard
open operator fun invoke(first: H, vararg rest: H): Header<H>

Creates a HeaderValues instance using the provided values, marking the header as optional.