简体   繁体   中英

Any reactive HTTP Scala client?

Is there any really reactive Scala Http client except play's ? By word reactive I mean ability to consume response data in chunks with all that non-blocking goodies on handling that portions of data.

What about spray ? Minimal dependencies and non-blocking data processing with Akka. Look at example . Also there are some chunked samples in scala-spray-examples on github.

Play(2.5) is built on top of Netty . I would suggest spray as well but spray is no longer maintained and has been superseded by Akka HTTP. So, II would suggest you use Akka HTTP or Play. I have to say though, Play is currently working on integrating with Akka HTTP and they currently have an experimental version ready.

If you want to use a standalone reactive http scala client, try Akka HTTP : http://doc.akka.io/docs/akka-http/current/scala/http/

The upside of using play, even though it brings in a lot of dependencies, they have a really good test framework for the HTTP side. I would suggest you look at the play documentation, as you will realize you won't need much outside of what they already have.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM