diff options
author | adamw <adam@warski.org> | 2017-10-17 17:28:50 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-10-17 17:28:50 +0200 |
commit | 6e109a964383bfe5e2be04f65fa7cc1356a97cbe (patch) | |
tree | 7764ff94d72e0ffbf1e593fb8c5886562dc57f33 /docs/backends/akkahttp.rst | |
parent | 06bd5c95d04dd57e1b6c2572b94336b8fdb68bfa (diff) | |
download | sttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.tar.gz sttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.tar.bz2 sttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.zip |
More docs
Diffstat (limited to 'docs/backends/akkahttp.rst')
-rw-r--r-- | docs/backends/akkahttp.rst | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/backends/akkahttp.rst b/docs/backends/akkahttp.rst index 41e3a7c..53ebfda 100644 --- a/docs/backends/akkahttp.rst +++ b/docs/backends/akkahttp.rst @@ -1,3 +1,5 @@ +.. _akkahttp: + ``AkkaHttpBackend`` =================== @@ -5,9 +7,7 @@ To use, add the following dependency to your project:: "com.softwaremill.sttp" %% "akka-http-backend" % "0.0.20" -This backend depends on `akka-http <http://doc.akka.io/docs/akka-http/current/scala/http/>`_. -A fully **asynchronous** backend. Sending a request returns a response wrapped -in a ``Future``. +This backend depends on `akka-http <http://doc.akka.io/docs/akka-http/current/scala/http/>`_. A fully **asynchronous** backend. Sending a request returns a response wrapped in a ``Future``. Next you'll need to add an implicit value:: @@ -16,9 +16,7 @@ Next you'll need to add an implicit value:: // or, if you'd like to use an existing actor system: implicit val sttpBackend = AkkaHttpBackend.usingActorSystem(actorSystem) -This backend supports sending and receiving -`akka-streams <http://doc.akka.io/docs/akka/current/scala/stream/index.html>`_ -streams of type ``akka.stream.scaladsl.Source[ByteString, Any]``. +This backend supports sending and receiving `akka-streams <http://doc.akka.io/docs/akka/current/scala/stream/index.html>`_ streams of type ``akka.stream.scaladsl.Source[ByteString, Any]``. To set the request body as a stream:: |