public interface MutableHeaders extends Headers
EMPTY
Modifier and Type | Method and Description |
---|---|
MutableHeaders |
add(CharSequence header,
CharSequence value)
Add a header for the given name and value.
|
MutableHeaders |
remove(CharSequence header)
Removes a header.
|
default MutableHeaders |
set(CharSequence header,
CharSequence value)
Sets an HTTP header overriding any existing value.
|
empty, forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, of
asMap, asMap, asProperties, contains, getValue, getValueType, names, of, subMap, subMap, subMap, values
get, get, get, get
forEach, spliterator
MutableHeaders add(CharSequence header, CharSequence value)
header
- The head namevalue
- The valueMutableHeaders remove(CharSequence header)
header
- The header to removedefault MutableHeaders set(CharSequence header, CharSequence value)
header
- The headervalue
- The value