diff options
author | adamw <adam@warski.org> | 2017-07-28 15:28:15 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-28 15:28:15 +0200 |
commit | df1fff3b2c2f8a0a7cbc3c2101c810358ec49920 (patch) | |
tree | ad4aeaf6942e718a1722e226741d14552e9e7bd8 /async-http-client-handler/future/src | |
parent | 8c7945ea87371d02906b84c45dc2d3b92f815306 (diff) | |
download | sttp-df1fff3b2c2f8a0a7cbc3c2101c810358ec49920.tar.gz sttp-df1fff3b2c2f8a0a7cbc3c2101c810358ec49920.tar.bz2 sttp-df1fff3b2c2f8a0a7cbc3c2101c810358ec49920.zip |
Using a custom URI class
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/FutureAsyncHttpClientHandler.scala | 6 |
1 files changed, 2 insertions, 4 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 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]( |