Returns a new flash with the given key-value pair added.
Returns a new flash with the given key-value pair added.
For example:
flash + ("username" -> "bob")
the key-value pair to add
the modified flash
Returns a new flash with elements added from the given Iterable
.
Returns a new flash with elements added from the given Iterable
.
an Iterable
containing key-value pairs to add.
Returns a new flash with the given key removed.
Returns a new flash with the given key removed.
For example:
flash - "username"
the key to remove
the modified flash
Returns a new flash with the given keys removed.
Returns a new flash with the given keys removed.
For example:
flash -- Seq("username", "name")
the keys to remove
the modified flash
Retrieves the flash value associated with the given key.
Retrieves the flash value associated with the given key.
NoSuchElementException
if no value exists for the key.
Optionally returns the flash value associated with a key.
Returns true
if this flash is empty.
HTTP Flash scope.
Flash data are encoded into an HTTP cookie, and can only contain simple
String
values.