boolean
Is the response code a 400 Bad Request?
Get response as
String
in given character set
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.
Get response in a buffered stream
Get buffered reader to response body using the character set returned from
HttpRequest.charset()
and the configured buffer size
Get buffered reader to response body using the given character set r and
the configured buffer size
byte[]
Get response as byte array
HttpRequest.Operation.call()
int
Get the status code of the response
Set the value of the given
AtomicInteger
to the status code of the
response
boolean
Is the response code a 201 Created?
long
Get a date header from the response falling back to returning -1 if the
header is missing or parsing fails
long
Get a date header from the response falling back to returning the given
default value if the header is missing or parsing fails
Start a 'DELETE' request to the given URL
Start a 'DELETE' request to the given URL
Encode the given URL as an ASCII
String
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
Start a 'HEAD' request to the given URL
Start a 'HEAD' request to the given URL
Get all the response headers
int
Get an integer header from the response falling back to returning -1 if the
header is missing or parsing fails
int
Get an integer header value from the response falling back to the given
default value if the header is missing or if parsing fails
boolean
Is the response body empty?
Get status message of the response
boolean
Is the response code a 204 No Content?
boolean
Is the response code a 404 Not Found?
boolean
Is the response code a 304 Not Modified?
boolean
Is the response code a 200 OK?
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 a multipart header to the response body
Start a 'POST' request to the given URL
Start a 'POST' request to the given URL
Start a 'PUT' request to the given URL
Start a 'PUT' request to the given URL
Get reader to response body using given character set.
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
HttpRequest.Operation.run()
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
boolean
Is the response code a 500 Internal Server Error?
Get stream to response body
Start a 'TRACE' request to the given URL
Start a 'TRACE' request to the given URL
Configure HTTPS connection to trust all certificates
Create writer to request output stream