diff options
author | Bjørn Madsen <bm@aeons.dk> | 2017-08-30 14:31:25 +0200 |
---|---|---|
committer | Bjørn Madsen <bm@aeons.dk> | 2017-08-30 15:02:57 +0200 |
commit | 044858260368f335cce53ac136d2605de6dab7cf (patch) | |
tree | 378af9bd2a229488117dced4348276fdc8cb4acf /async-http-client-handler/future/src | |
parent | bb8ed00d350dd9154f3499825cc3e844730dac0e (diff) | |
download | sttp-044858260368f335cce53ac136d2605de6dab7cf.tar.gz sttp-044858260368f335cce53ac136d2605de6dab7cf.tar.bz2 sttp-044858260368f335cce53ac136d2605de6dab7cf.zip |
Rename subprojects to be more consistent
Diffstat (limited to 'async-http-client-handler/future/src')
-rw-r--r-- | async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/AsyncHttpClientFutureHandler.scala (renamed from async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala) | 10 |
1 files changed, 5 insertions, 5 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/AsyncHttpClientFutureHandler.scala index e21cb89..d0bc03e 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/AsyncHttpClientFutureHandler.scala @@ -13,7 +13,7 @@ import org.reactivestreams.Publisher import scala.concurrent.{ExecutionContext, Future} -class FutureAsyncHttpClientHandler private ( +class AsyncHttpClientFutureHandler private ( asyncHttpClient: AsyncHttpClient, closeClient: Boolean)(implicit ec: ExecutionContext) extends AsyncHttpClientHandler[Future, Nothing](asyncHttpClient, @@ -28,7 +28,7 @@ class FutureAsyncHttpClientHandler private ( throw new IllegalStateException("This handler does not support streaming") } -object FutureAsyncHttpClientHandler { +object AsyncHttpClientFutureHandler { /** * @param ec The execution context for running non-network related operations, @@ -37,7 +37,7 @@ object FutureAsyncHttpClientHandler { */ def apply()(implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[Future, Nothing] = - new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(), + new AsyncHttpClientFutureHandler(new DefaultAsyncHttpClient(), closeClient = true) /** @@ -48,7 +48,7 @@ object FutureAsyncHttpClientHandler { def usingConfig(cfg: AsyncHttpClientConfig)( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[Future, Nothing] = - new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(cfg), + new AsyncHttpClientFutureHandler(new DefaultAsyncHttpClient(cfg), closeClient = true) /** @@ -59,5 +59,5 @@ object FutureAsyncHttpClientHandler { def usingClient(client: AsyncHttpClient)(implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[Future, Nothing] = - new FutureAsyncHttpClientHandler(client, closeClient = false) + new AsyncHttpClientFutureHandler(client, closeClient = false) } |