diff options
author | adamw <adam@warski.org> | 2017-08-31 14:32:01 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-08-31 14:32:01 +0200 |
commit | 71f6a1eeee412045cc08ce8894194573362cb8f0 (patch) | |
tree | c7618bb53f6e08c30df4e943f56d16fc1bfb80c1 /async-http-client-handler/cats | |
parent | 5bc89ddefab16dd814d0b716a72490451b697b32 (diff) | |
download | sttp-71f6a1eeee412045cc08ce8894194573362cb8f0.tar.gz sttp-71f6a1eeee412045cc08ce8894194573362cb8f0.tar.bz2 sttp-71f6a1eeee412045cc08ce8894194573362cb8f0.zip |
Response.body is now an Either[String, T], to handle cases when the status code isn't 2xx
Diffstat (limited to 'async-http-client-handler/cats')
-rw-r--r-- | async-http-client-handler/cats/src/main/scala/com/softwaremill/sttp/asynchttpclient/cats/AsyncHttpClientCatsHandler.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/async-http-client-handler/cats/src/main/scala/com/softwaremill/sttp/asynchttpclient/cats/AsyncHttpClientCatsHandler.scala b/async-http-client-handler/cats/src/main/scala/com/softwaremill/sttp/asynchttpclient/cats/AsyncHttpClientCatsHandler.scala index f6eaf10..fec0eab 100644 --- a/async-http-client-handler/cats/src/main/scala/com/softwaremill/sttp/asynchttpclient/cats/AsyncHttpClientCatsHandler.scala +++ b/async-http-client-handler/cats/src/main/scala/com/softwaremill/sttp/asynchttpclient/cats/AsyncHttpClientCatsHandler.scala @@ -28,6 +28,10 @@ class AsyncHttpClientCatsHandler[F[_]: Async] private ( override protected def publisherToStreamBody( p: Publisher[ByteBuffer]): Nothing = throw new IllegalStateException("This handler does not support streaming") + + override protected def publisherToString( + p: Publisher[ByteBuffer]): F[String] = + throw new IllegalStateException("This handler does not support streaming") } object AsyncHttpClientCatsHandler { |