See #33823 : the MultiValueMap methods that iterate over the whole header collection misalign with some underlying server implementations.
On the other hand having HttpHeaders implement MultiValueMap brings in some (marginal?) benefits: using CollectionUtils, asserting headers with map-specific assertions, putting all the headers into a plain Map (map.putAll(headers)), etc...
See #33823 : the
MultiValueMap
methods that iterate over the whole header collection misalign with some underlying server implementations.On the other hand having
HttpHeaders
implementMultiValueMap
brings in some (marginal?) benefits: usingCollectionUtils
, asserting headers with map-specific assertions, putting all the headers into a plainMap
(map.putAll(headers)
), etc...