2015-05-11 23:05:18 +02:00
|
|
|
.. _-parameterMap-:
|
|
|
|
|
|
|
|
|
|
parameterMap
|
|
|
|
|
============
|
|
|
|
|
|
|
|
|
|
Extracts all parameters at once as a ``Map[String, String]`` mapping parameter names to
|
|
|
|
|
parameter values.
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/ParameterDirectives.scala
|
2015-05-11 23:05:18 +02:00
|
|
|
:snippet: parameterMap
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
If a query contains a parameter value several times, the map will contain the last one.
|
|
|
|
|
|
|
|
|
|
See :ref:`which-parameter-directive` for other
|
|
|
|
|
choices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
... includecode2:: ../../../../code/docs/http/scaladsl/server/directives/ParameterDirectivesExamplesSpec.scala
|
|
|
|
|
:snippet: parameterMap
|