sttp icon indicating copy to clipboard operation
sttp copied to clipboard

Akka-Http ZIO backend (WIP)

Open domdorn opened this issue 4 years ago • 1 comments

Basic implementation for a zio-backend wrapping a Akka-Http Backend. Normal requests work, however I need help converting from AkkaStreams with WebSockets to ZioStreams with WebSockets.

Any pointers highly appreciated!

domdorn avatar Jun 04 '21 16:06 domdorn

I think for streaming you can try using zio-reactivestream-interop - first converting the zio-stream to a Publisher, then using this to create an akka-stream. And the other way round.

See https://github.com/softwaremill/sttp/blob/master/async-http-client-backend/zio/src/main/scala/sttp/client3/asynchttpclient/zio/AsyncHttpClientZioBackend.scala#L51 for another backend which also uses this interop library

adamw avatar Jun 05 '21 13:06 adamw

closed this as we're migrating away from akka due to the licensing mess.

domdorn avatar Jan 03 '23 22:01 domdorn