From 7aee6a24cd71ab6d791e6d0e62a1c98a53bc464c Mon Sep 17 00:00:00 2001 From: adamw Date: Tue, 20 Feb 2018 13:59:07 +0100 Subject: De-sugar for 2.11 --- .../asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala | 9 ++++++++- .../monix/AsyncHttpClientMonixBackend.scala | 9 ++++++++- .../sttp/asynchttpclient/AsyncHttpClientBackend.scala | 15 ++++++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) (limited to 'async-http-client-backend') diff --git a/async-http-client-backend/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala b/async-http-client-backend/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala index e608499..a4c2391 100644 --- a/async-http-client-backend/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala +++ b/async-http-client-backend/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala @@ -4,7 +4,14 @@ import java.nio.ByteBuffer import cats.effect._ import com.softwaremill.sttp.asynchttpclient.AsyncHttpClientBackend -import com.softwaremill.sttp.{FollowRedirectsBackend, MonadAsyncError, SttpBackend, SttpBackendOptions, Utf8, concatByteBuffers} +import com.softwaremill.sttp.{ + FollowRedirectsBackend, + MonadAsyncError, + SttpBackend, + SttpBackendOptions, + Utf8, + concatByteBuffers +} import fs2._ import fs2.interop.reactivestreams._ import org.asynchttpclient.{AsyncHttpClient, AsyncHttpClientConfig, DefaultAsyncHttpClient} diff --git a/async-http-client-backend/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/AsyncHttpClientMonixBackend.scala b/async-http-client-backend/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/AsyncHttpClientMonixBackend.scala index 03d4d09..3d54b26 100644 --- a/async-http-client-backend/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/AsyncHttpClientMonixBackend.scala +++ b/async-http-client-backend/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/AsyncHttpClientMonixBackend.scala @@ -3,7 +3,14 @@ package com.softwaremill.sttp.asynchttpclient.monix import java.nio.ByteBuffer import com.softwaremill.sttp.asynchttpclient.AsyncHttpClientBackend -import com.softwaremill.sttp.{FollowRedirectsBackend, MonadAsyncError, SttpBackend, SttpBackendOptions, Utf8, concatByteBuffers} +import com.softwaremill.sttp.{ + FollowRedirectsBackend, + MonadAsyncError, + SttpBackend, + SttpBackendOptions, + Utf8, + concatByteBuffers +} import monix.eval.Task import monix.execution.{Cancelable, Scheduler} import monix.reactive.Observable diff --git a/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala b/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala index d804f08..da40a18 100644 --- a/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala +++ b/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala @@ -9,7 +9,20 @@ import org.asynchttpclient.AsyncHandler.State import org.asynchttpclient.handler.StreamedAsyncHandler import org.asynchttpclient.proxy.ProxyServer import org.asynchttpclient.request.body.multipart.{ByteArrayPart, FilePart, StringPart} -import org.asynchttpclient.{AsyncCompletionHandler, AsyncHandler, AsyncHttpClient, DefaultAsyncHttpClient, DefaultAsyncHttpClientConfig, HttpResponseBodyPart, HttpResponseHeaders, HttpResponseStatus, Param, RequestBuilder, Request => AsyncRequest, Response => AsyncResponse} +import org.asynchttpclient.{ + AsyncCompletionHandler, + AsyncHandler, + AsyncHttpClient, + DefaultAsyncHttpClient, + DefaultAsyncHttpClientConfig, + HttpResponseBodyPart, + HttpResponseHeaders, + HttpResponseStatus, + Param, + RequestBuilder, + Request => AsyncRequest, + Response => AsyncResponse +} import org.reactivestreams.{Publisher, Subscriber, Subscription} import scala.collection.JavaConverters._ -- cgit v1.2.3