pekko/akka-docs/rst/scala/http/routing-dsl/directives/parameter-directives/parameter.rst

25 lines
577 B
ReStructuredText
Raw Normal View History

.. _-parameter-:
parameter
=========
Signature
---------
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/ParameterDirectives.scala
:snippet: parameter
Description
-----------
Extracts a *query* parameter value from the request.
See :ref:`-parameters-` for a detailed description of this directive.
See :ref:`which-parameter-directive` to understand when to use which directive.
Example
-------
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/ParameterDirectivesExamplesSpec.scala
:snippet: example-1