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

com.gu.integration.HttpClient.scala Maven / Gradle / Ivy

package com.gu.integration

import dispatch.classic._
import dispatch.classic.thread.ThreadSafeHttpClient
import org.apache.http.params.HttpParams
import org.apache.http.conn.params.ConnRouteParams

/**
* Convinence functions for HTTP based testing.
* Not to be used in production code.
*/
object HttpClient {

  def get(uri: String): String = apply(url(uri))

  def get(uri: String, headers: Map[String, String] = Map(), params: Traversable[(String, String)] = Map()): String = apply(url(uri) <:< headers <




© 2015 - 2024 Weber Informatics LLC | Privacy Policy