calaxb_2.9.1.1.1.2.source-code.httpclients_dispatch0100.scala.template Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalaxb_2.9.1 Show documentation
Show all versions of scalaxb_2.9.1 Show documentation
scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and wsdl.
The newest version!
package scalaxb
trait DispatchHttpClients extends HttpClients {
lazy val httpClient = new DispatchHttpClient {}
trait DispatchHttpClient extends HttpClient {
import dispatch._, Defaults._
val http = new Http()
def request(in: String, address: java.net.URI, headers: Map[String, String]): String = {
val req = url(address.toString) << in <:< headers
val s = http(req > as.String)
s()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy