Last active
December 4, 2015 23:28
-
-
Save ShaneDelmore/244442c4648f8553dab5 to your computer and use it in GitHub Desktop.
scalaj-http with ammonite
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
| //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