HttpRequest |
HttpRequest.accept(java.lang.String accept) |
Set the 'Accept' header to given value
|
HttpRequest |
HttpRequest.acceptCharset(java.lang.String acceptCharset) |
Set the 'Accept-Charset' header to given value
|
HttpRequest |
HttpRequest.acceptEncoding(java.lang.String acceptEncoding) |
Set the 'Accept-Encoding' header to given value
|
HttpRequest |
HttpRequest.acceptGzipEncoding() |
Set the 'Accept-Encoding' header to 'gzip'
|
HttpRequest |
HttpRequest.acceptJson() |
Set the 'Accept' header to 'application/json'
|
HttpRequest |
HttpRequest.authorization(java.lang.String authorization) |
Set the 'Authorization' header to given value
|
HttpRequest |
HttpRequest.basic(java.lang.String name,
java.lang.String password) |
Set the 'Authorization' header to given values in Basic authentication
format
|
HttpRequest |
HttpRequest.body(java.util.concurrent.atomic.AtomicReference<java.lang.String> output) |
Get the response body as a String and set it as the value of the
given reference.
|
HttpRequest |
HttpRequest.body(java.util.concurrent.atomic.AtomicReference<java.lang.String> output,
java.lang.String charset) |
Get the response body as a String and set it as the value of the
given reference.
|
HttpRequest |
HttpRequest.bufferSize(int size) |
Set the size used when buffering and copying between streams
|
HttpRequest |
HttpRequest.chunk(int size) |
Set chunked streaming mode to the given size
|
protected HttpRequest |
HttpRequest.closeOutput() |
Close output stream
|
protected HttpRequest |
HttpRequest.closeOutputQuietly() |
|
HttpRequest |
HttpRequest.code(java.util.concurrent.atomic.AtomicInteger output) |
Set the value of the given AtomicInteger to the status code of the
response
|
HttpRequest |
HttpRequest.connectTimeout(int timeout) |
Set connect timeout on connection to given value
|
HttpRequest |
HttpRequest.contentLength(int contentLength) |
Set the 'Content-Length' request header to the given value
|
HttpRequest |
HttpRequest.contentLength(java.lang.String contentLength) |
Set the 'Content-Length' request header to the given value
|
HttpRequest |
HttpRequest.contentType(java.lang.String contentType) |
Set the 'Content-Type' request header to the given value
|
HttpRequest |
HttpRequest.contentType(java.lang.String contentType,
java.lang.String charset) |
Set the 'Content-Type' request header to the given value and charset
|
protected HttpRequest |
HttpRequest.copy(java.io.InputStream input,
java.io.OutputStream output) |
Copy from input stream to output stream
|
protected HttpRequest |
HttpRequest.copy(java.io.Reader input,
java.io.Writer output) |
Copy from reader to writer
|
static HttpRequest |
HttpRequest.delete(java.lang.CharSequence url) |
Start a 'DELETE' request to the given URL
|
static HttpRequest |
HttpRequest.delete(java.lang.CharSequence baseUrl,
boolean encode,
java.lang.Object... params) |
Start a 'DELETE' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.delete(java.lang.CharSequence baseUrl,
java.util.Map<?,?> params,
boolean encode) |
Start a 'DELETE' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.delete(java.net.URL url) |
Start a 'DELETE' request to the given URL
|
HttpRequest |
HttpRequest.disconnect() |
Disconnect the connection
|
HttpRequest |
HttpRequest.followRedirects(boolean followRedirects) |
Set whether or not the underlying connection should follow redirects in
the response.
|
HttpRequest |
HttpRequest.form(java.lang.Object name,
java.lang.Object value) |
Write the name/value pair as form data to the request body
|
HttpRequest |
HttpRequest.form(java.lang.Object name,
java.lang.Object value,
java.lang.String charset) |
Write the name/value pair as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map.Entry<?,?> entry) |
Write the key and value in the entry as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map.Entry<?,?> entry,
java.lang.String charset) |
Write the key and value in the entry as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map<?,?> values) |
Write the values in the map as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map<?,?> values,
java.lang.String charset) |
Write the values in the map as encoded form data to the request body
|
static HttpRequest |
HttpRequest.get(java.lang.CharSequence url) |
Start a 'GET' request to the given URL
|
static HttpRequest |
HttpRequest.get(java.lang.CharSequence baseUrl,
boolean encode,
java.lang.Object... params) |
Start a 'GET' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.get(java.lang.CharSequence baseUrl,
java.util.Map<?,?> params,
boolean encode) |
Start a 'GET' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.get(java.net.URL url) |
Start a 'GET' request to the given URL
|
static HttpRequest |
HttpRequest.head(java.lang.CharSequence url) |
Start a 'HEAD' request to the given URL
|
static HttpRequest |
HttpRequest.head(java.lang.CharSequence baseUrl,
boolean encode,
java.lang.Object... params) |
Start a 'GET' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.head(java.lang.CharSequence baseUrl,
java.util.Map<?,?> params,
boolean encode) |
Start a 'HEAD' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.head(java.net.URL url) |
Start a 'HEAD' request to the given URL
|
HttpRequest |
HttpRequest.header(java.lang.String name,
java.lang.Number value) |
Set header name to given value
|
HttpRequest |
HttpRequest.header(java.lang.String name,
java.lang.String value) |
Set header name to given value
|
HttpRequest |
HttpRequest.header(java.util.Map.Entry<java.lang.String,java.lang.String> header) |
Set header to have given entry's key as the name and value as the value
|
HttpRequest |
HttpRequest.headers(java.util.Map<java.lang.String,java.lang.String> headers) |
Set all headers found in given map where the keys are the header names and
the values are the header values
|
HttpRequest |
HttpRequest.ifModifiedSince(long ifModifiedSince) |
Set the 'If-Modified-Since' request header to the given value
|
HttpRequest |
HttpRequest.ifNoneMatch(java.lang.String ifNoneMatch) |
Set the 'If-None-Match' request header to the given value
|
HttpRequest |
HttpRequest.ignoreCloseExceptions(boolean ignore) |
Set whether or not to ignore exceptions that occur from calling
Closeable.close()
|
private HttpRequest |
HttpRequest.incrementTotalSize(long size) |
|
protected HttpRequest |
HttpRequest.openOutput() |
Open output stream
|
static HttpRequest |
HttpRequest.options(java.lang.CharSequence url) |
Start an 'OPTIONS' request to the given URL
|
static HttpRequest |
HttpRequest.options(java.net.URL url) |
Start an 'OPTIONS' request to the given URL
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.io.InputStream part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.Number part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.Number part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.InputStream part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.partHeader(java.lang.String name,
java.lang.String value) |
Write a multipart header to the response body
|
static HttpRequest |
HttpRequest.post(java.lang.CharSequence url) |
Start a 'POST' request to the given URL
|
static HttpRequest |
HttpRequest.post(java.lang.CharSequence baseUrl,
boolean encode,
java.lang.Object... params) |
Start a 'POST' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.post(java.lang.CharSequence baseUrl,
java.util.Map<?,?> params,
boolean encode) |
Start a 'POST' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.post(java.net.URL url) |
Start a 'POST' request to the given URL
|
HttpRequest |
HttpRequest.progress(HttpRequest.UploadProgress callback) |
Set the UploadProgress callback for this request
|
HttpRequest |
HttpRequest.proxyAuthorization(java.lang.String proxyAuthorization) |
Set the 'Proxy-Authorization' header to given value
|
HttpRequest |
HttpRequest.proxyBasic(java.lang.String name,
java.lang.String password) |
Set the 'Proxy-Authorization' header to given values in Basic authentication
format
|
static HttpRequest |
HttpRequest.put(java.lang.CharSequence url) |
Start a 'PUT' request to the given URL
|
static HttpRequest |
HttpRequest.put(java.lang.CharSequence baseUrl,
boolean encode,
java.lang.Object... params) |
Start a 'PUT' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.put(java.lang.CharSequence baseUrl,
java.util.Map<?,?> params,
boolean encode) |
Start a 'PUT' request to the given URL along with the query params
|
static HttpRequest |
HttpRequest.put(java.net.URL url) |
Start a 'PUT' request to the given URL
|
HttpRequest |
HttpRequest.readTimeout(int timeout) |
Set read timeout on connection to given value
|
HttpRequest |
HttpRequest.receive(java.io.File file) |
Stream response body to file
|
HttpRequest |
HttpRequest.receive(java.io.OutputStream output) |
Stream response to given output stream
|
HttpRequest |
HttpRequest.receive(java.io.PrintStream output) |
Stream response to given print stream
|
HttpRequest |
HttpRequest.receive(java.io.Writer writer) |
Receive response into the given writer
|
HttpRequest |
HttpRequest.receive(java.lang.Appendable appendable) |
Receive response into the given appendable
|
HttpRequest |
HttpRequest.referer(java.lang.String referer) |
Set the 'Referer' header to given value
|
HttpRequest |
HttpRequest.send(byte[] input) |
Write byte array to request body
|
HttpRequest |
HttpRequest.send(java.io.File input) |
Write contents of file to request body
|
HttpRequest |
HttpRequest.send(java.io.InputStream input) |
Write stream to request body
|
HttpRequest |
HttpRequest.send(java.io.Reader input) |
Write reader to request body
|
HttpRequest |
HttpRequest.send(java.lang.CharSequence value) |
Write char sequence to request body
|
protected HttpRequest |
HttpRequest.startPart() |
Start part of a multipart
|
static HttpRequest |
HttpRequest.trace(java.lang.CharSequence url) |
Start a 'TRACE' request to the given URL
|
static HttpRequest |
HttpRequest.trace(java.net.URL url) |
Start a 'TRACE' request to the given URL
|
HttpRequest |
HttpRequest.trustAllCerts() |
Configure HTTPS connection to trust all certificates
|
HttpRequest |
HttpRequest.trustAllHosts() |
Configure HTTPS connection to trust all hosts using a custom
HostnameVerifier that always returns true for each
host verified
|
HttpRequest |
HttpRequest.uncompress(boolean uncompress) |
Set whether or not the response body should be automatically uncompressed
when read from.
|
HttpRequest |
HttpRequest.useCaches(boolean useCaches) |
Set value of URLConnection.setUseCaches(boolean)
|
HttpRequest |
HttpRequest.useProxy(java.lang.String proxyHost,
int proxyPort) |
Configure an HTTP proxy on this connection.
|
HttpRequest |
HttpRequest.userAgent(java.lang.String userAgent) |
Set the 'User-Agent' header to given value
|
protected HttpRequest |
HttpRequest.writePartHeader(java.lang.String name,
java.lang.String filename) |
Write part header
|
protected HttpRequest |
HttpRequest.writePartHeader(java.lang.String name,
java.lang.String filename,
java.lang.String contentType) |
Write part header
|