Created
April 14, 2016 22:23
-
-
Save wsargent/88d17c502f56d130dfe9ab8546907a25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import play.api.libs.ws.ahc.AhcWSClient | |
import akka.stream.ActorMaterializer | |
import akka.actor.ActorSystem | |
implicit val system = ActorSystem() | |
implicit val materializer = ActorMaterializer() | |
val ws = AhcWSClient() | |
val req = ws.url("http://example.com").get().map{ | |
resp => resp.body | |
}(system.dispatcher) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment