2015-06-23 18:28:53 +02:00
|
|
|
.. _-extractMaterializer-:
|
2015-05-11 23:05:18 +02:00
|
|
|
|
2015-06-23 18:28:53 +02:00
|
|
|
extractMaterializer
|
2015-10-09 15:19:36 +02:00
|
|
|
===================
|
2015-05-11 23:05:18 +02:00
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
|
2015-06-23 18:28:53 +02:00
|
|
|
:snippet: extractMaterializer
|
2015-05-11 23:05:18 +02:00
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
2015-10-09 15:19:36 +02:00
|
|
|
Extracts the ``Materializer`` from the ``RequestContext``, which can be useful when you want to run an
|
|
|
|
|
Akka Stream directly in your route.
|
|
|
|
|
|
|
|
|
|
See also :ref:`-withMaterializer-` to see how to customise the used materializer for specific inner routes.
|
2015-05-11 23:05:18 +02:00
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-09-16 23:50:35 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
|
2015-10-09 15:19:36 +02:00
|
|
|
:snippet: extractMaterializer-0
|