c

requests

Session

case class Session(headers: Map[String, String] = BaseSession.defaultHeaders, cookieValues: Map[String, String] = Map(), cookies: Map[String, HttpCookie] = ..., auth: RequestAuth = RequestAuth.Empty, proxy: (String, Int) = null, persistCookies: Boolean = true, maxRedirects: Int = 5, readTimeout: Int = 10 * 1000, connectTimeout: Int = 10 * 1000, verifySslCerts: Boolean = true, autoDecompress: Boolean = true, compress: Compress = Compress.None) extends BaseSession with Product with Serializable

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

headers

Custom headers to use, in addition to the defaults

cookies

Custom cookies to send up with this request

auth

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

proxy

Host and port of a proxy you want to use

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

readTimeout

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

connectTimeout

How long to wait for a connection before timing out

verifySslCerts

Set this to false to ignore problems with SSL certificates

Linear Supertypes
Serializable, Serializable, Product, Equals, BaseSession, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Session
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. BaseSession
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Session(headers: Map[String, String] = BaseSession.defaultHeaders, cookieValues: Map[String, String] = Map(), cookies: Map[String, HttpCookie] = ..., auth: RequestAuth = RequestAuth.Empty, proxy: (String, Int) = null, persistCookies: Boolean = true, maxRedirects: Int = 5, readTimeout: Int = 10 * 1000, connectTimeout: Int = 10 * 1000, verifySslCerts: Boolean = true, autoDecompress: Boolean = true, compress: Compress = Compress.None)

    headers

    Custom headers to use, in addition to the defaults

    cookies

    Custom cookies to send up with this request

    auth

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

    proxy

    Host and port of a proxy you want to use

    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

    readTimeout

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

    connectTimeout

    How long to wait for a connection before timing out

    verifySslCerts

    Set this to false to ignore problems with SSL certificates

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val auth: RequestAuth
    Definition Classes
    SessionBaseSession
  6. val autoDecompress: Boolean
    Definition Classes
    SessionBaseSession
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  8. val compress: Compress
    Definition Classes
    SessionBaseSession
  9. val connectTimeout: Int
    Definition Classes
    SessionBaseSession
  10. val cookieValues: Map[String, String]
  11. val cookies: Map[String, HttpCookie]
    Definition Classes
    SessionBaseSession
  12. lazy val delete: Requester
    Definition Classes
    BaseSession
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. lazy val get: Requester
    Definition Classes
    BaseSession
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. lazy val head: Requester
    Definition Classes
    BaseSession
  17. val headers: Map[String, String]
    Definition Classes
    SessionBaseSession
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val maxRedirects: Int
    Definition Classes
    SessionBaseSession
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. lazy val options: Requester
    Definition Classes
    BaseSession
  24. val persistCookies: Boolean
    Definition Classes
    SessionBaseSession
  25. lazy val post: Requester
    Definition Classes
    BaseSession
  26. val proxy: (String, Int)
    Definition Classes
    SessionBaseSession
  27. lazy val put: Requester
    Definition Classes
    BaseSession
  28. val readTimeout: Int
    Definition Classes
    SessionBaseSession
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. val verifySslCerts: Boolean
    Definition Classes
    SessionBaseSession
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BaseSession

Inherited from AnyRef

Inherited from Any

Ungrouped