diff options
author | adamw <adam@warski.org> | 2017-07-24 17:05:07 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-24 17:05:07 +0200 |
commit | 81d290bc8658841f48d8a7fc10d88813eba16ffc (patch) | |
tree | 04ddb3defcfd65b041ec58046958a808a475b512 /async-http-client-handler/future/src/main/scala | |
parent | b5f0c5387f7a98875f60fdf09c8dbe56e5c2766d (diff) | |
download | sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.tar.gz sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.tar.bz2 sttp-81d290bc8658841f48d8a7fc10d88813eba16ffc.zip |
Hiding specific implementation types
Diffstat (limited to 'async-http-client-handler/future/src/main/scala')
-rw-r--r-- | async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala b/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala index 11808d3..b0a36f9 100644 --- a/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala +++ b/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala @@ -2,6 +2,7 @@ package com.softwaremill.sttp.asynchttpclient.future import java.nio.ByteBuffer +import com.softwaremill.sttp.SttpHandler import com.softwaremill.sttp.asynchttpclient.{ AsyncHttpClientHandler, MonadAsyncError @@ -39,7 +40,7 @@ object FutureAsyncHttpClientHandler { */ def apply()( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) - : FutureAsyncHttpClientHandler = + : SttpHandler[Future, Nothing] = new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(), closeClient = true) @@ -50,7 +51,7 @@ object FutureAsyncHttpClientHandler { */ def usingConfig(cfg: AsyncHttpClientConfig)( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) - : FutureAsyncHttpClientHandler = + : SttpHandler[Future, Nothing] = new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(), closeClient = true) @@ -61,7 +62,7 @@ object FutureAsyncHttpClientHandler { */ def usingClient(client: AsyncHttpClient)(implicit ec: ExecutionContext = ExecutionContext.Implicits.global) - : FutureAsyncHttpClientHandler = + : SttpHandler[Future, Nothing] = new FutureAsyncHttpClientHandler(client, closeClient = false) } |