From d06c93b7691dec9b79e36c675440cfd28e93975c Mon Sep 17 00:00:00 2001 From: adamw Date: Wed, 21 Mar 2018 19:01:02 -0400 Subject: Updating async-http-client --- .../sttp/asynchttpclient/scalaz/AsyncHttpClientScalazBackend.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'async-http-client-backend/scalaz') diff --git a/async-http-client-backend/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazBackend.scala b/async-http-client-backend/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazBackend.scala index cdb45c3..7c2343d 100644 --- a/async-http-client-backend/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazBackend.scala +++ b/async-http-client-backend/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazBackend.scala @@ -4,6 +4,7 @@ import java.nio.ByteBuffer import com.softwaremill.sttp.asynchttpclient.AsyncHttpClientBackend import com.softwaremill.sttp.{FollowRedirectsBackend, MonadAsyncError, SttpBackend, SttpBackendOptions} +import io.netty.buffer.ByteBuf import org.asynchttpclient.{AsyncHttpClient, AsyncHttpClientConfig, DefaultAsyncHttpClient} import org.reactivestreams.Publisher @@ -13,7 +14,8 @@ import scalaz.{-\/, \/-} class AsyncHttpClientScalazBackend private (asyncHttpClient: AsyncHttpClient, closeClient: Boolean) extends AsyncHttpClientBackend[Task, Nothing](asyncHttpClient, TaskMonad, closeClient) { - override protected def streamBodyToPublisher(s: Nothing): Publisher[ByteBuffer] = s // nothing is everything + override protected def streamBodyToPublisher(s: Nothing): Publisher[ByteBuf] = + s // nothing is everything override protected def publisherToStreamBody(p: Publisher[ByteBuffer]): Nothing = throw new IllegalStateException("This backend does not support streaming") -- cgit v1.2.3