Skip to content

Instantly share code, notes, and snippets.

@ShaneDelmore
Last active December 4, 2015 23:28
Show Gist options
  • Select an option

  • Save ShaneDelmore/244442c4648f8553dab5 to your computer and use it in GitHub Desktop.

Select an option

Save ShaneDelmore/244442c4648f8553dab5 to your computer and use it in GitHub Desktop.
scalaj-http with ammonite
//I put this in my ammonite predef.scala
load.ivy("org.scalaj" %% "scalaj-http" % "2.1.0")
import scalaj.http._
//Then in ammonite I can make blocking http calls which works well in the repl
Http("https://wtfismyip.com/text").asString.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment