Adds a header but don't replace existing header(s).
Adds a header without replacing existing headers without validating the key and value.
Retrieves the given header value wrapped with Option
.
Retrieves the given header value wrapped with Option
.
Retrieves all values for a given header name.
Set a header.
Set a header. If an entry already exists, it is replaced.
Set or replace a header without validating the key and value.
(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.
(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.
Retrieves the given header value or null
if it doesn't exit.
(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]
.
Set or replace a header, as in String)), but with standard formatting for dates in HTTP headers.
Set or replace a header, as in String)), but with standard formatting for dates in HTTP headers.
(Since version 2017-02-01) Use .set(String, Date)
instead
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.