calaxb_2.9.1.1.1.2.source-code.httpclients_dispatch.scala.template Maven / Gradle / Ivy
package scalaxb
trait DispatchHttpClients extends HttpClients {
lazy val httpClient = new DispatchHttpClient {}
trait DispatchHttpClient extends HttpClient {
import dispatch._
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