KIP-1308 — Extend Header API for Common Value Types
Discussion ClientProducer
Extends the Header and Headers APIs with static factories and typed accessors for common value types (string with optional charset, byte, short, int, long, boolean and similar), keeping byte[] as the internal representation with no wire format change. Headers have no configurable serializers unlike record keys and values, so every team writes its own wrapper classes and byte constants to store and read the primitive types headers actually carry.
Details
| Author | Aditya Kousik |
| Status | Discussion |
| JIRA | KAFKA-20387 |
| Wiki | View on Apache Wiki |
| Created | 2026-03-31 |
| Last Modified | 2026-05-27 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.