aboutsummaryrefslogtreecommitdiff
path: root/async-http-client-backend
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2018-02-20 13:59:07 +0100
committeradamw <adam@warski.org>2018-02-20 13:59:07 +0100
commit7aee6a24cd71ab6d791e6d0e62a1c98a53bc464c (patch)
tree1a216987ba8b757bae3e43f5de2a552d157f91b3 /async-http-client-backend
parent52017e118df6cf22b95f4c10b6abe4162801a1ef (diff)
downloadsttp-7aee6a24cd71ab6d791e6d0e62a1c98a53bc464c.tar.gz
sttp-7aee6a24cd71ab6d791e6d0e62a1c98a53bc464c.tar.bz2
sttp-7aee6a24cd71ab6d791e6d0e62a1c98a53bc464c.zip
De-sugar for 2.11
Diffstat (limited to 'async-http-client-backend')
-rw-r--r--async-http-client-backend/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Backend.scala9
-rw-r--r--async-http-client-backend/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/AsyncHttpClientMonixBackend.scala9
-rw-r--r--async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala15
3 files changed, 30 insertions, 3 deletions
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._