Romain Quinio created KAFKA-14655: ------------------------------------- Summary: Case-insensitive header key operations in Java client Key: KAFKA-14655 URL: https://issues.apache.org/jira/browse/KAFKA-14655 Project: Kafka Issue Type: New Feature Reporter: Romain Quinio
In the Java client, Kafka header keys are manipulated as String. The current implementation uses case-sensitive comparisons via #equals (rather than #equalsIgnoreCase): [https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/header/internals/RecordHeaders.java#L89] It would be useful to be able to ignore the case during header operations (get/delete/...) similarly to how HTTP header keys are manipulated by clients. In particular in case of bridging HTTP -> Kafka, Kafka headers may be conveyed first as HTTP headers where the case of the key doesn't matter, the difference of behavior can be surprising. -- This message was sent by Atlassian Jira (v8.20.10#820010)