aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-24 12:26:50 +0200
committeradamw <adam@warski.org>2017-07-24 12:26:50 +0200
commit986f6ff409b91230924508eafa7e4c077358dfed (patch)
treef665f48d6e99e8e0dd5c907638c2fda876a41641 /README.md
parentccd2c4b1d53bf68e04ff1f8bca032d870494d9a8 (diff)
downloadsttp-986f6ff409b91230924508eafa7e4c077358dfed.tar.gz
sttp-986f6ff409b91230924508eafa7e4c077358dfed.tar.bz2
sttp-986f6ff409b91230924508eafa7e4c077358dfed.zip
Adding missing implicit EC to Future/AsyncHttpClient handler
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 415179a..c5ca897 100644
--- a/README.md
+++ b/README.md
@@ -274,19 +274,19 @@ dependency on `scalaz-concurrent`.
Next you'll need to add an implicit value:
```scala
-implicit val sttpHandler = new FutureAsyncHttpClientHandler()
+implicit val sttpHandler = FutureAsyncHttpClientHandler()
// or, if you're using the scalaz version:
-implicit val sttpHandler = new ScalazAsyncHttpClientHandler()
+implicit val sttpHandler = ScalazAsyncHttpClientHandler()
// or, if you're using the monix version:
-implicit val sttpHandler = new MonixAsyncHttpClientHandler()
+implicit val sttpHandler = MonixAsyncHttpClientHandler()
// or, if you'd like to use custom configuration:
-implicit val sttpHandler = new FutureAsyncHttpClientHandler(asyncHttpClientConfig)
+implicit val sttpHandler = FutureAsyncHttpClientHandler.usingConfig(asyncHttpClientConfig)
// or, if you'd like to instantiate the AsyncHttpClient yourself:
-implicit val sttpHandler = new FutureAsyncHttpClientHandler(asyncHttpClient)
+implicit val sttpHandler = FutureAsyncHttpClientHandler.usingClient(asyncHttpClient)
```
Streaming is not (yet) supported.