I want to write some simple HTTP requests in Scala, but the Databinder Dispatch library has instructions for sbt only. As I am a relative newbie to Eclipse, can someone provide instructions on how I use it in my Scala project in Eclipse? I am using Scala 2.9.0final. If this is not compatible with Dispatch, is there an alternative HTTP request library?
http://dispatch.databinder.net/Try+Dispatch.html
Thank!
, , Dispatch sbt. , , Eclipse, .
, , .
, Maven sbt. , , + Eclipse, , - sbt Scala Maven Java. , Eclipse, .
Dispath Apache HttpClient, Java ( Scala). Dispatch, :
sbt update
lib_managed/scala_${version}/compile
scala script Script.scala:
import dispatch._ val h = new Http val req = url("http://www.scala-lang.org/") val handler = req >>> System.out h(handler) h(url("http://www.scala-lang.org/") >>> System.out)
script . linux
scala -cp `echo lib_managed/scala_${version}/compile/*.jar | sed 's/ /:/g'` Script.scala