|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of HttpRequest in com.github.kevinsawicki.http |
---|
Methods in com.github.kevinsawicki.http that return HttpRequest | |
---|---|
HttpRequest |
HttpRequest.accept(String value)
Set the 'Accept' header to given value |
HttpRequest |
HttpRequest.acceptCharset(String value)
Set the 'Accept-Charset' header to given value |
HttpRequest |
HttpRequest.acceptEncoding(String value)
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(String value)
Set the 'Authorization' header to given value |
HttpRequest |
HttpRequest.basic(String name,
String password)
Set the 'Authorization' header to given values in Basic authentication format |
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()
Call closeOutput() and re-throw a caught IOException s as
an HttpRequest.HttpRequestException |
HttpRequest |
HttpRequest.code(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 value)
Set the 'Content-Length' request header to the given value |
HttpRequest |
HttpRequest.contentLength(String value)
Set the 'Content-Length' request header to the given value |
HttpRequest |
HttpRequest.contentType(String value)
Set the 'Content-Type' request header to the given value |
HttpRequest |
HttpRequest.contentType(String value,
String charset)
Set the 'Content-Type' request header to the given value and charset |
protected HttpRequest |
HttpRequest.copy(InputStream input,
OutputStream output)
Copy from input stream to output stream |
protected HttpRequest |
HttpRequest.copy(Reader input,
Writer output)
Copy from reader to writer |
static HttpRequest |
HttpRequest.delete(CharSequence url)
Start a 'DELETE' request to the given URL |
static HttpRequest |
HttpRequest.delete(CharSequence baseUrl,
boolean encode,
String... params)
Start a 'DELETE' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.delete(CharSequence baseUrl,
Map<?,?> params,
boolean encode)
Start a 'DELETE' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.delete(URL url)
Start a 'DELETE' request to the given URL |
HttpRequest |
HttpRequest.disconnect()
Disconnect the connection |
HttpRequest |
HttpRequest.form(Map.Entry<?,?> entry)
Write the key and value in the entry as form data to the request body |
HttpRequest |
HttpRequest.form(Map.Entry<?,?> entry,
String charset)
Write the key and value in the entry as form data to the request body |
HttpRequest |
HttpRequest.form(Map<?,?> values)
Write the values in the map as form data to the request body |
HttpRequest |
HttpRequest.form(Map<?,?> values,
String charset)
Write the values in the map as encoded form data to the request body |
HttpRequest |
HttpRequest.form(Object name,
Object value)
Write the name/value pair as form data to the request body |
HttpRequest |
HttpRequest.form(Object name,
Object value,
String charset)
Write the name/value pair as form data to the request body |
static HttpRequest |
HttpRequest.get(CharSequence url)
Start a 'GET' request to the given URL |
static HttpRequest |
HttpRequest.get(CharSequence baseUrl,
boolean encode,
String... params)
Start a 'GET' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.get(CharSequence baseUrl,
Map<?,?> params,
boolean encode)
Start a 'GET' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.get(URL url)
Start a 'GET' request to the given URL |
static HttpRequest |
HttpRequest.head(CharSequence url)
Start a 'HEAD' request to the given URL |
static HttpRequest |
HttpRequest.head(CharSequence baseUrl,
boolean encode,
String... params)
Start a 'GET' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.head(CharSequence baseUrl,
Map<?,?> params,
boolean encode)
Start a 'HEAD' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.head(URL url)
Start a 'HEAD' request to the given URL |
HttpRequest |
HttpRequest.header(Map.Entry<String,String> header)
Set header to have given entry's key as the name and value as the value |
HttpRequest |
HttpRequest.header(String name,
Number value)
Set header name to given value |
HttpRequest |
HttpRequest.header(String name,
String value)
Set header name to given value |
HttpRequest |
HttpRequest.headers(Map<String,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 value)
Set the 'If-Modified-Since' request header to the given value |
HttpRequest |
HttpRequest.ifNoneMatch(String value)
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() |
protected HttpRequest |
HttpRequest.openOutput()
Open output stream |
static HttpRequest |
HttpRequest.options(CharSequence url)
Start an 'OPTIONS' request to the given URL |
static HttpRequest |
HttpRequest.options(URL url)
Start an 'OPTIONS' request to the given URL |
HttpRequest |
HttpRequest.part(String name,
File part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
InputStream part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
Number part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
File part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
InputStream part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
Number part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
String part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.partHeader(String name,
String value)
Write a multipart header to the response body |
static HttpRequest |
HttpRequest.post(CharSequence url)
Start a 'POST' request to the given URL |
static HttpRequest |
HttpRequest.post(CharSequence baseUrl,
boolean encode,
String... params)
Start a 'POST' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.post(CharSequence baseUrl,
Map<?,?> params,
boolean encode)
Start a 'POST' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.post(URL url)
Start a 'POST' request to the given URL |
static HttpRequest |
HttpRequest.put(CharSequence url)
Start a 'PUT' request to the given URL |
static HttpRequest |
HttpRequest.put(CharSequence baseUrl,
boolean encode,
String... params)
Start a 'PUT' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.put(CharSequence baseUrl,
Map<?,?> params,
boolean encode)
Start a 'PUT' request to the given URL along with the query params |
static HttpRequest |
HttpRequest.put(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(Appendable appendable)
Receive response into the given appendable |
HttpRequest |
HttpRequest.receive(File file)
Stream response body to file |
HttpRequest |
HttpRequest.receive(OutputStream output)
Stream response to given output stream |
HttpRequest |
HttpRequest.receive(PrintStream output)
Stream response to given print stream |
HttpRequest |
HttpRequest.receive(Writer writer)
Receive response into the given writer |
HttpRequest |
HttpRequest.send(byte[] input)
Write byte array to request body |
HttpRequest |
HttpRequest.send(CharSequence value)
Write char sequence to request body |
HttpRequest |
HttpRequest.send(File input)
Write contents of file to request body |
HttpRequest |
HttpRequest.send(InputStream input)
Write stream to request body |
HttpRequest |
HttpRequest.send(Reader input)
Write reader to request body |
protected HttpRequest |
HttpRequest.startPart()
Start part of a multipart |
static HttpRequest |
HttpRequest.trace(CharSequence url)
Start a 'TRACE' request to the given URL |
static HttpRequest |
HttpRequest.trace(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.userAgent(String value)
Set the 'User-Agent' header to given value |
protected HttpRequest |
HttpRequest.writePartHeader(String name,
String filename)
Write part header |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |