diff options
author | adamw <adam@warski.org> | 2017-07-24 12:26:50 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-24 12:26:50 +0200 |
commit | 986f6ff409b91230924508eafa7e4c077358dfed (patch) | |
tree | f665f48d6e99e8e0dd5c907638c2fda876a41641 /README.md | |
parent | ccd2c4b1d53bf68e04ff1f8bca032d870494d9a8 (diff) | |
download | sttp-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.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. |