How to configure data binding manager for use in Eclipse?

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!

+2
source share
2 answers

, , Dispatch sbt. , , Eclipse, .

, , .

, Maven sbt. , , + Eclipse, , - sbt Scala Maven Java. , Eclipse, .

+1

Dispath Apache HttpClient, Java ( Scala). Dispatch, :

  • Git
  • sbt
  • sbt update
  • lib_managed/scala_${version}/compile dir
  • 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
    
  • !)
+1

All Articles