diff options
author | adamw <adam@warski.org> | 2017-10-18 14:20:26 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-10-18 14:20:26 +0200 |
commit | 21c4700bbe8cf37d7b9feacc5afdf64357604d8f (patch) | |
tree | 50cd74646955bae495296b1d9a212ac412a75b7c /docs/backends/asynchttpclient.rst | |
parent | 6e109a964383bfe5e2be04f65fa7cc1356a97cbe (diff) | |
download | sttp-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.rst | 12 |
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. |