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/fs2 | |
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/fs2')
-rw-r--r-- | async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala (renamed from async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/Fs2AsyncHttpClientHandler.scala) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/Fs2AsyncHttpClientHandler.scala b/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala index 91a3109..f7ed00c 100644 --- a/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/Fs2AsyncHttpClientHandler.scala +++ b/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala @@ -17,7 +17,7 @@ import org.reactivestreams.Publisher import scala.concurrent.ExecutionContext import scala.language.higherKinds -class Fs2AsyncHttpClientHandler[F[_]: Effect] private ( +class AsyncHttpClientFs2Handler[F[_]: Effect] private ( asyncHttpClient: AsyncHttpClient, closeClient: Boolean)(implicit ec: ExecutionContext) extends AsyncHttpClientHandler[F, Stream[F, ByteBuffer]]( @@ -35,7 +35,7 @@ class Fs2AsyncHttpClientHandler[F[_]: Effect] private ( p.toStream[F] } -object Fs2AsyncHttpClientHandler { +object AsyncHttpClientFs2Handler { /** * @param ec The execution context for running non-network related operations, @@ -45,7 +45,7 @@ object Fs2AsyncHttpClientHandler { def apply[F[_]: Effect]()( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[F, Stream[F, ByteBuffer]] = - new Fs2AsyncHttpClientHandler[F](new DefaultAsyncHttpClient(), + new AsyncHttpClientFs2Handler[F](new DefaultAsyncHttpClient(), closeClient = true) /** @@ -56,7 +56,7 @@ object Fs2AsyncHttpClientHandler { def usingConfig[F[_]: Effect](cfg: AsyncHttpClientConfig)( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[F, Stream[F, ByteBuffer]] = - new Fs2AsyncHttpClientHandler[F](new DefaultAsyncHttpClient(cfg), + new AsyncHttpClientFs2Handler[F](new DefaultAsyncHttpClient(cfg), closeClient = true) /** @@ -67,7 +67,7 @@ object Fs2AsyncHttpClientHandler { def usingClient[F[_]: Effect](client: AsyncHttpClient)( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[F, Stream[F, ByteBuffer]] = - new Fs2AsyncHttpClientHandler[F](client, closeClient = false) + new AsyncHttpClientFs2Handler[F](client, closeClient = false) } private[fs2] class EffectMonad[F[_]](implicit F: Effect[F]) |