requests
Type members
Classlikes
Mechanisms for compressing the upload stream; supports Gzip and Deflate by default
Mechanisms for compressing the upload stream; supports Gzip and Deflate by default
- Companion:
- object
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.
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.
Different ways you can authorize a HTTP request; by default, HTTP Basic auth and Proxy auth are supported
Different ways you can authorize a HTTP request; by default, HTTP Basic auth and Proxy auth are supported
- Companion:
- object
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.
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.
- Companion:
- object
Represents a HTTP response
Represents a HTTP response
- Value parameters:
- data
the response body; may contain HTML, JSON, or binary or textual data
- headers
the raw headers the server sent back with the response
- history
the response of any redirects that were performed before arriving at the current response
- statusCode
the status code of the response
- statusMessage
the status message of the response
- url
the URL that the original request was made to
Wraps the array of bytes returned in the body of a HTTP response
Wraps the array of bytes returned in the body of a HTTP response
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
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