From 21c4700bbe8cf37d7b9feacc5afdf64357604d8f Mon Sep 17 00:00:00 2001 From: adamw Date: Wed, 18 Oct 2017 14:20:26 +0200 Subject: More docs --- docs/backends/asynchttpclient.rst | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'docs/backends/asynchttpclient.rst') 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 `_ -streams for sending request & receiving responses. +It's also possible to use `fs2 `_ streams for sending request & receiving responses. -- cgit v1.2.3