mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Update MultiMap contract and implementations so the setting a null value removes the entry from the MultiMap. Tests have been cleaned up and extended so that all MultiMap implementations are equally tested. - closes #3267
This commit is contained in:
@@ -193,9 +193,9 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
MultiMap addAll(Map<String, String> headers);
|
||||
|
||||
/**
|
||||
* Sets a value under the specified name.
|
||||
* Sets a {@code value} under the specified {@code name}.
|
||||
* <p>
|
||||
* If there is an existing header with the same name, it is removed.
|
||||
* If there is an existing header with the same name, it is removed. Setting a {@code null} value removes the entry.
|
||||
*
|
||||
* @param name The name
|
||||
* @param value The value
|
||||
|
||||
Reference in New Issue
Block a user