Session

case class Session(headers: Map[String, String], cookieValues: Map[String, String], cookies: Map[String, HttpCookie], auth: RequestAuth, proxy: (String, Int), cert: Cert, sslContext: SSLContext, persistCookies: Boolean, maxRedirects: Int, readTimeout: Int, connectTimeout: Int, verifySslCerts: Boolean, autoDecompress: Boolean, compress: Compress, chunkedUpload: Boolean, check: Boolean) extends BaseSession

A long-lived session; this can be used to automatically persist cookies from one request to the next, or to set default configuration that will be shared between requests. These configuration flags can all be over-ridden by the parameters on Requester.apply or Requester.stream

Value parameters:
auth

HTTP authentication you want to use with this request; defaults to none

connectTimeout

How long to wait for a connection before timing out

cookies

Custom cookies to send up with this request

headers

Custom headers to use, in addition to the defaults

maxRedirects

How many redirects to automatically resolve; defaults to 5. You can also set it to 0 to prevent Requests from resolving redirects for you

proxy

Host and port of a proxy you want to use

readTimeout

How long to wait for data to be read before timing out

verifySslCerts

Set this to false to ignore problems with SSL certificates

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def send(method: String): Requester
Inherited from:
BaseSession

Inherited fields

lazy val delete: Requester
Inherited from:
BaseSession
lazy val get: Requester
Inherited from:
BaseSession
lazy val head: Requester
Inherited from:
BaseSession
lazy val options: Requester
Inherited from:
BaseSession
lazy val patch: Requester
Inherited from:
BaseSession
lazy val post: Requester
Inherited from:
BaseSession
lazy val put: Requester
Inherited from:
BaseSession