Interface HttpHeaders

All Superinterfaces:
Map<String,List<String>>

@Immutable public interface HttpHeaders extends Map<String,List<String>>
An immutable multi-map representing HTTP headers. It offers three kinds of operations:

update is essentially Map.put(Object, Object), but returns a new instance with the updated entries.

delete is essentially Map.remove(Object), but returns a new instance without the deleted headers.

apply applies a function to all entries or a subset of them and applies the changes. If the given operator returns a null value the entry will be deleted otherwise updated.