Package org.a2aproject.sdk.util
Class HttpHeaderUtils
java.lang.Object
org.a2aproject.sdk.util.HttpHeaderUtils
Utilities for creating case-insensitive, immutable snapshots of HTTP header maps.
-
Method Summary
-
Method Details
-
copyOfCaseInsensitive
Creates an unmodifiable, case-insensitive copy of the given header map.Null keys and null value lists are silently skipped (e.g. the
nullstatus-line key fromHttpURLConnection). Null elements within value lists are filtered out, and the remaining values are defensively copied.- Parameters:
headers- the source header map- Returns:
- an unmodifiable, case-insensitive map
-