All Downloads are FREE. Search and download functionalities are using the official Maven repository.

calaxb_2.12.1.12.1.source-code.httpclients_dispatch_classic_async.scala.template Maven / Gradle / Ivy

Go to download

scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and wsdl.

The newest version!
package scalaxb

import scala.concurrent.{ Future, ExecutionContext }

trait DispatchHttpClientsAsync extends HttpClientsAsync {
  lazy val httpClient = new DispatchHttpClient {}

  trait DispatchHttpClient extends HttpClient {
    import dispatch._

    def request(in: String, address: java.net.URI, headers: Map[String, String])(implicit ec: ExecutionContext): Future[String] = {
      val req = url(address.toString) << in <:< headers
      Http(req > as.String)
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy