diff options
-rw-r--r-- | async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala | 2 | ||||
-rw-r--r-- | async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala | 2 | ||||
-rw-r--r-- | async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala | 2 | ||||
-rw-r--r-- | async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala (renamed from async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/internal/AsyncHttpClientHandler.scala) | 9 |
4 files changed, 7 insertions, 8 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 624c51b..59119d7 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 @@ -1,6 +1,6 @@ package com.softwaremill.sttp.asynchttpclient.future -import com.softwaremill.sttp.asynchttpclient.internal.{ +import com.softwaremill.sttp.asynchttpclient.{ AsyncHttpClientHandler, WrapperFromAsync } diff --git a/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala b/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala index ddfacb5..de0c139 100644 --- a/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala +++ b/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala @@ -1,6 +1,6 @@ package com.softwaremill.sttp.asynchttpclient.monix -import com.softwaremill.sttp.asynchttpclient.internal.{ +import com.softwaremill.sttp.asynchttpclient.{ AsyncHttpClientHandler, WrapperFromAsync } diff --git a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala index e2c664c..ab2e261 100644 --- a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala +++ b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala @@ -1,6 +1,6 @@ package com.softwaremill.sttp.asynchttpclient.scalaz -import com.softwaremill.sttp.asynchttpclient.internal.{ +import com.softwaremill.sttp.asynchttpclient.{ AsyncHttpClientHandler, WrapperFromAsync } diff --git a/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/internal/AsyncHttpClientHandler.scala b/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala index 924e0bc..98160c5 100644 --- a/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/internal/AsyncHttpClientHandler.scala +++ b/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala @@ -1,4 +1,4 @@ -package com.softwaremill.sttp.asynchttpclient.internal +package com.softwaremill.sttp.asynchttpclient import java.nio.charset.Charset @@ -15,9 +15,8 @@ import org.asynchttpclient.{ import scala.collection.JavaConverters._ import scala.language.higherKinds -private[asynchttpclient] class AsyncHttpClientHandler[R[_]]( - asyncHttpClient: AsyncHttpClient, - wrapper: WrapperFromAsync[R]) +class AsyncHttpClientHandler[R[_]](asyncHttpClient: AsyncHttpClient, + wrapper: WrapperFromAsync[R]) extends SttpHandler[R, Nothing] { override def send[T](r: Request[T, Nothing]): R[Response[T]] = { @@ -109,6 +108,6 @@ private[asynchttpclient] class AsyncHttpClientHandler[R[_]]( } } -private[asynchttpclient] trait WrapperFromAsync[R[_]] { +trait WrapperFromAsync[R[_]] { def apply[T](register: (Either[Throwable, T] => Unit) => Unit): R[T] } |