p

requests

package requests

Linear Supertypes
BaseSession, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. requests
  2. BaseSession
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait BaseSession extends AnyRef
  2. trait Compress extends AnyRef

    Mechanisms for compressing the upload stream; supports Gzip and Deflate by default

  3. class InvalidCertException extends Exception
  4. case class MultiItem(name: String, data: RequestBlob, filename: String = null) extends Product with Serializable
  5. case class MultiPart(items: MultiItem*) extends MultipartFormRequestBlob with Product with Serializable
  6. case class Request(url: String, auth: RequestAuth = RequestAuth.Empty, params: Iterable[(String, String)] = Nil, headers: Iterable[(String, String)] = Nil, readTimeout: Int = 0, connectTimeout: Int = 0, proxy: (String, Int) = null, cookies: Map[String, HttpCookie] = Map(), cookieValues: Map[String, String] = Map(), maxRedirects: Int = 5, verifySslCerts: Boolean = true, autoDecompress: Boolean = true, compress: Compress = Compress.None, keepAlive: Boolean = true, check: Boolean = true) extends Product with Serializable

    The equivalent of configuring a Requester.apply or Requester.stream call, but without invoking it.

    The equivalent of configuring a Requester.apply or Requester.stream call, but without invoking it. Useful if you want to further customize it and make the call later via the overloads of apply/stream that take a Request.

  7. trait RequestAuth extends AnyRef

    Different ways you can authorize a HTTP request; by default, HTTP Basic auth and Proxy auth are supported

  8. trait RequestBlob extends AnyRef

    Represents the different things you can upload in the body of a HTTP request.

    Represents the different things you can upload in the body of a HTTP request. By default allows form-encoded key-value pairs, arrays of bytes, strings, files, and inputstreams. These types can be passed directly to the data parameter of Requester.apply and will be wrapped automatically by the implicit constructors.

  9. class RequestFailedException extends Exception
  10. case class Requester(verb: String, sess: BaseSession) extends Product with Serializable
  11. case class Response(url: String, statusCode: Int, statusMessage: String, headers: Map[String, Seq[String]], data: Bytes, history: Option[Response]) extends ByteData with Product with Serializable

    Represents a HTTP response

    Represents a HTTP response

    url

    the URL that the original request was made to

    statusCode

    the status code of the response

    statusMessage

    the status message of the response

    headers

    the raw headers the server sent back with the response

    data

    the response body; may contain HTML, JSON, or binary or textual data

    history

    the response of any redirects that were performed before arriving at the current response

  12. class ResponseBlob extends AnyRef

    Wraps the array of bytes returned in the body of a HTTP response

  13. case class Session(headers: Map[String, String] = BaseSession.defaultHeaders, cookieValues: Map[String, String] = Map(), cookies: Map[String, HttpCookie] = mutable.LinkedHashMap.empty[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, chunkedUpload: Boolean = false, check: Boolean = true) 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.

    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

  14. case class StreamHeaders(url: String, statusCode: Int, statusMessage: String, headers: Map[String, Seq[String]], history: Option[Response]) extends Product with Serializable
  15. class TimeoutException extends Exception
  16. class UnknownHostException extends Exception

Abstract Value Members

  1. abstract def auth: RequestAuth
    Definition Classes
    BaseSession
  2. abstract def autoDecompress: Boolean
    Definition Classes
    BaseSession
  3. abstract def check: Boolean
    Definition Classes
    BaseSession
  4. abstract def chunkedUpload: Boolean
    Definition Classes
    BaseSession
  5. abstract def compress: Compress
    Definition Classes
    BaseSession
  6. abstract def connectTimeout: Int
    Definition Classes
    BaseSession
  7. abstract def cookies: Map[String, HttpCookie]
    Definition Classes
    BaseSession
  8. abstract def headers: Map[String, String]
    Definition Classes
    BaseSession
  9. abstract def maxRedirects: Int
    Definition Classes
    BaseSession
  10. abstract def persistCookies: Boolean
    Definition Classes
    BaseSession
  11. abstract def proxy: (String, Int)
    Definition Classes
    BaseSession
  12. abstract def readTimeout: Int
    Definition Classes
    BaseSession
  13. abstract def verifySslCerts: Boolean
    Definition Classes
    BaseSession

Concrete Value Members

  1. lazy val delete: Requester
    Definition Classes
    BaseSession
  2. lazy val get: Requester
    Definition Classes
    BaseSession
  3. lazy val head: Requester
    Definition Classes
    BaseSession
  4. lazy val options: Requester
    Definition Classes
    BaseSession
  5. lazy val patch: Requester
    Definition Classes
    BaseSession
  6. lazy val post: Requester
    Definition Classes
    BaseSession
  7. lazy val put: Requester
    Definition Classes
    BaseSession
  8. object BaseSession
  9. object Compress
  10. object RequestAuth
  11. object RequestBlob
  12. object Requester extends Serializable
  13. object Util

Inherited from BaseSession

Inherited from AnyRef

Inherited from Any

Ungrouped