Set the 'Accept' header to given value
Set the 'Accept-Charset' header to given value
Set the 'Accept-Encoding' header to given value
Set the 'Accept-Encoding' header to 'gzip'
Set the 'Accept' header to 'application/json'
Set the 'Authorization' header to given value
Set the 'Authorization' header to given values in Basic authentication
format
Get the response body as a
String
and set it as the value of the
given reference.
Get the response body as a
String
and set it as the value of the
given reference.
Set the size used when buffering and copying between streams
HttpRequest.chunk(int size)
Set chunked streaming mode to the given size
Set the value of the given
AtomicInteger
to the status code of the
response
Set connect timeout on connection to given value
Set the 'Content-Length' request header to the given value
Set the 'Content-Length' request header to the given value
Set the 'Content-Type' request header to the given value
Set the 'Content-Type' request header to the given value and charset
Copy from input stream to output stream
Copy from reader to writer
Start a 'DELETE' request to the given URL
Start a 'DELETE' request to the given URL along with the query params
Start a 'DELETE' request to the given URL along with the query params
Start a 'DELETE' request to the given URL
Disconnect the connection
Set whether or not the underlying connection should follow redirects in
the response.
Write the name/value pair as form data to the request body
Write the name/value pair as form data to the request body
Write the key and value in the entry as form data to the request body
Write the key and value in the entry as form data to the request body
Write the values in the map as form data to the request body
Write the values in the map as encoded form data to the request body
Start a 'GET' request to the given URL
Start a 'GET' request to the given URL along with the query params
Start a 'GET' request to the given URL along with the query params
Start a 'GET' request to the given URL
Start a 'HEAD' request to the given URL
Start a 'GET' request to the given URL along with the query params
Start a 'HEAD' request to the given URL along with the query params
Start a 'HEAD' request to the given URL
Set header name to given value
Set header name to given value
Set header to have given entry's key as the name and value as the value
Set all headers found in given map where the keys are the header names and
the values are the header values
Set the 'If-Modified-Since' request header to the given value
Set the 'If-None-Match' request header to the given value
Start an 'OPTIONS' request to the given URL
Start an 'OPTIONS' request to the given URL
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write part of a multipart request to the request body
Write a multipart header to the response body
Start a 'POST' request to the given URL
Start a 'POST' request to the given URL along with the query params
Start a 'POST' request to the given URL along with the query params
Start a 'POST' request to the given URL
Set the UploadProgress callback for this request
Set the 'Proxy-Authorization' header to given value
Set the 'Proxy-Authorization' header to given values in Basic authentication
format
Start a 'PUT' request to the given URL
Start a 'PUT' request to the given URL along with the query params
Start a 'PUT' request to the given URL along with the query params
Start a 'PUT' request to the given URL
Set read timeout on connection to given value
Stream response body to file
Stream response to given output stream
Stream response to given print stream
Receive response into the given writer
Receive response into the given appendable
Set the 'Referer' header to given value
HttpRequest.send(byte[] input)
Write byte array to request body
Write contents of file to request body
Write stream to request body
Write reader to request body
Write char sequence to request body
Start part of a multipart
Start a 'TRACE' request to the given URL
Start a 'TRACE' request to the given URL
Configure HTTPS connection to trust all certificates
Configure HTTPS connection to trust all hosts using a custom
HostnameVerifier
that always returns
true
for each
host verified
Set whether or not the response body should be automatically uncompressed
when read from.
Configure an HTTP proxy on this connection.
Set the 'User-Agent' header to given value