header

abstract fun header(header: Header): CommandBuilder

Sets the message header containing additional metadata.

Return

this builder for method chaining

Parameters

header

the header object with metadata

See also


abstract fun header(customize: (header: Header) -> Unit): CommandBuilder

Customizes the message header using a lambda function.

Return

this builder for method chaining

Parameters

customize

function to modify the existing header

See also


abstract val header: Header