aboutsummaryrefslogtreecommitdiff
path: root/docs/backends/asynchttpclient.rst
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-10-18 14:20:26 +0200
committeradamw <adam@warski.org>2017-10-18 14:20:26 +0200
commit21c4700bbe8cf37d7b9feacc5afdf64357604d8f (patch)
tree50cd74646955bae495296b1d9a212ac412a75b7c /docs/backends/asynchttpclient.rst
parent6e109a964383bfe5e2be04f65fa7cc1356a97cbe (diff)
downloadsttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.tar.gz
sttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.tar.bz2
sttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.zip
More docs
Diffstat (limited to 'docs/backends/asynchttpclient.rst')
-rw-r--r--docs/backends/asynchttpclient.rst12
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/backends/asynchttpclient.rst b/docs/backends/asynchttpclient.rst
index 8408175..5afab37 100644
--- a/docs/backends/asynchttpclient.rst
+++ b/docs/backends/asynchttpclient.rst
@@ -1,5 +1,5 @@
-``AsyncHttpClientBackend``
-==========================
+async-http-client backend
+=========================
To use, add the following dependency to your project::
@@ -44,10 +44,7 @@ Next you'll need to add an implicit value::
Streaming using Monix
---------------------
-The Monix backend supports streaming (as both Monix and Async Http Client
-support reactive streams ``Publisher``s out of the box). The type of
-supported streams in this case is ``Observable[ByteBuffer]``. That is, you can
-set such an observable as a request body::
+The Monix backend supports streaming (as both Monix and Async Http Client support reactive streams ``Publisher`` s out of the box). The type of supported streams in this case is ``Observable[ByteBuffer]``. That is, you can set such an observable as a request body::
import com.softwaremill.sttp._
@@ -77,6 +74,5 @@ And receive responses as an observable stream::
.response(asStream[Observable[ByteBuffer]])
.send()
-It's also possible to use `fs2 <https://github.com/functional-streams-for-scala/fs2>`_
-streams for sending request & receiving responses.
+It's also possible to use `fs2 <https://github.com/functional-streams-for-scala/fs2>`_ streams for sending request & receiving responses.