From df1fff3b2c2f8a0a7cbc3c2101c810358ec49920 Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 28 Jul 2017 15:28:15 +0200 Subject: Using a custom URI class --- .../sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'async-http-client-handler/future/src/main/scala') 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 b0a36f9..5d71511 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 @@ -38,8 +38,7 @@ object FutureAsyncHttpClientHandler { * e.g. mapping responses. Defaults to the global execution * context. */ - def apply()( - implicit ec: ExecutionContext = ExecutionContext.Implicits.global) + def apply()(implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[Future, Nothing] = new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(), closeClient = true) @@ -72,8 +71,7 @@ private[future] class FutureMonad(implicit ec: ExecutionContext) override def map[T, T2](fa: Future[T], f: (T) => T2): Future[T2] = fa.map(f) - override def flatMap[T, T2](fa: Future[T], - f: (T) => Future[T2]): Future[T2] = + override def flatMap[T, T2](fa: Future[T], f: (T) => Future[T2]): Future[T2] = fa.flatMap(f) override def async[T]( -- cgit v1.2.3