Retrofit + Play

Retrofit is an amazing HTTP client scaffolding library. It makes writing and testing HTTP clients really easy.

To make it easy to use Retrofit in Play, i wrote a small library that uses the Play’s WS library as the HTTP stack for Retrofit, while exposing convenient scala scala.concurrent.Future[A] wrappers on top of the java retrofit.Callback<A>.

The source code is on Github here.

 
24
Kudos
 
24
Kudos

Now read this

Kotlin Futures

I have been experimenting with Kotlin (a new JVM language) from the makers of Intellij (the IDE). If you are someone who writes a lot of code for Android and are languishing in the Java 6.5-ish world - then checkout Kotlin. It’s a breath... Continue →