Creates a new Headers instance including a Header with the specified key and value.
Creates a new Headers instance with the specified Header included.
The Headers as an immutable Java Kafka Headers
instance.
Appends the specified Headers after these headers.
true
if no Headers are included; otherwise false
.
The included Headers as a Chain
.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. The apply function is an alias.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. Alias for withKey.
true
if at least one Header is included; otherwise false
.
Headers represent an immutable append-only collection of Headers. To create a new Headers instance, you can use Headers#apply or Headers#empty and add an instance of Header using
append
.