commit
a32183d9f0
7 changed files with 11 additions and 13 deletions
|
|
@ -133,9 +133,9 @@ The ``HttpEntity`` companion object contains several helper constructors to crea
|
|||
|
||||
You can pattern match over the subtypes of ``HttpEntity`` if you want to provide special handling for each of the
|
||||
subtypes. However, in many cases a recipient of an ``HttpEntity`` doesn't care about of which subtype an entity is
|
||||
(and how data is transported exactly on the HTTP layer). Therefore, a general
|
||||
``HttpEntity::dataBytes: Source[ByteString, Any]`` is provided which allows access to the data of an entity regardless
|
||||
of its concrete subtype.
|
||||
(and how data is transported exactly on the HTTP layer). Therefore, the general method ``HttpEntity.dataBytes`` is
|
||||
provided which returns a ``Source[ByteString, Any]`` that allows access to the data of an entity regardless of its
|
||||
concrete subtype.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ Longer Example
|
|||
|
||||
The following is an Akka HTTP route definition that tries to show off a few features. The resulting service does
|
||||
not really do anything useful but its definition should give you a feel for what an actual API definition with
|
||||
the :ref:`http-high-level-server-side-api` will look like:
|
||||
the Routing DSL will look like:
|
||||
|
||||
.. includecode2:: ../../code/docs/http/scaladsl/HttpServerExampleSpec.scala
|
||||
:snippet: long-routing-example
|
||||
|
|
@ -3,7 +3,7 @@ Route TestKit
|
|||
|
||||
One of Akka HTTP's design goals is good testability of the created services.
|
||||
For services built with the Routing DSL Akka HTTP provides a dedicated testkit that makes efficient testing of
|
||||
route logic easy and convenient. This "route test DSL" is made available with the *akka-http-testkit-scala* module.
|
||||
route logic easy and convenient. This "route test DSL" is made available with the *akka-http-testkit* module.
|
||||
|
||||
|
||||
Usage
|
||||
|
|
@ -102,6 +102,6 @@ Examples
|
|||
A great pool of examples are the tests for all the predefined directives in Akka HTTP.
|
||||
They can be found here__.
|
||||
|
||||
__ @github@/akka-http-tests-scala/src/test/scala/akka/http/scaladsl/server/directives/
|
||||
__ @github@/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/
|
||||
|
||||
.. _scalatest: http://www.scalatest.org
|
||||
Loading…
Add table
Add a link
Reference in a new issue