Add a header but don't replace existing header(s).
Set a header.
Set a header. If an entry already exists, it is replaced.
(Changed in version 2.8.0) +
creates a new map. Use +=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) +
creates a new map. Use +=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) ++
creates a new map. Use ++=
to add an element to this map and return that map itself.
Set or replace a header, as in String)), but with standard formatting for dates in HTTP headers.
(Changed in version 2.8.0) -
creates a new map. Use -=
to remove an element from this map and return that map itself.
(Changed in version 2.8.0) -
creates a new map. Use -=
to remove an element from this map and return that map itself.
(Changed in version 2.8.0) --
creates a new map. Use --=
to remove an element from this map and return that map itself.
Adds a header without replacing existing headers, as in String), but with standard formatting for dates in HTTP headers.
(Changed in version 2.8.0) keys
returns Iterable[A]
rather than Iterator[A]
.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Set or replace a header, as in String), but with standard formatting for dates in HTTP headers.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
(Changed in version 2.8.0) values
returns Iterable[B]
rather than Iterator[B]
.
Mutable message headers map.
Header names are case-insensitive. For example,
get("accept")
is the same as get("Accept").The map is a multi-map. Use getAll to get all values for a key. Use add to append a key-value.