BaseHttp

class BaseHttp(proxyConfig: Option[Proxy], options: Seq[HttpOption], charset: String, sendBufferSize: Int, userAgent: String, compress: Boolean)

Extends and override this class to setup your own defaults

Value Params
charset

charset to use for encoding request and decoding response

compress

use HTTP Compression

options

set things like timeouts, ssl handling, redirect following

proxyConfig

http proxy; defaults to the Java default proxy (see http://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html). You can use scalaj.http.HttpConstants.proxy to specify an alternate proxy, or specify java.net.Proxy.NO_PROXY to explicitly use not use a proxy.

sendBufferSize

buffer size for multipart posts

userAgent

User-Agent request header

class Object
trait Matchable
class Any
object Http

Value members

Concrete methods

def apply(url: String): HttpRequest
Value Params
url

the full url of the request. Querystring params can be added to a get request with the .params methods