Skip to content

Instantly share code, notes, and snippets.

@wsargent
Created April 14, 2016 22:23
Show Gist options
  • Save wsargent/88d17c502f56d130dfe9ab8546907a25 to your computer and use it in GitHub Desktop.
Save wsargent/88d17c502f56d130dfe9ab8546907a25 to your computer and use it in GitHub Desktop.
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