Package | Description |
---|---|
ratpack.http.client |
The HTTP client.
|
ratpack.retrofit |
Integration with Retrofit.
|
ratpack.test.http |
Modifier and Type | Method and Description |
---|---|
default Promise<ReceivedResponse> |
HttpClient.get(java.net.URI uri) |
Promise<ReceivedResponse> |
HttpClient.get(java.net.URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a GET HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec, but the method will be defaulted to a GET.
|
Promise<ReceivedResponse> |
HttpClient.post(java.net.URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a POST HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec, but the method will be defaulted to a POST.
|
Promise<ReceivedResponse> |
HttpClient.request(java.net.URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec.
|
Modifier and Type | Method and Description |
---|---|
RequestSpec |
RequestSpec.onRedirect(Function<? super ReceivedResponse,Action<? super RequestSpec>> function)
Specifies a function to invoke when a redirectable response is received.
|
Modifier and Type | Method and Description |
---|---|
ReceivedResponse |
RatpackRetrofitCallException.getResponse()
Get the underlying response that resulted in the exception for this HTTP request.
|
Modifier and Type | Method and Description |
---|---|
ReceivedResponse |
TestHttpClient.delete()
Make a DELETE request with a path of "" this is the same as calling delete("").
|
ReceivedResponse |
TestHttpClient.delete(java.lang.String path)
Make a DELETE request to the specified path.
|
ReceivedResponse |
TestHttpClient.get()
Make a GET request with a path of "" this is the same as calling get("").
|
ReceivedResponse |
TestHttpClient.get(java.lang.String path)
Make a GET request to the specified path.
|
ReceivedResponse |
TestHttpClient.getResponse() |
ReceivedResponse |
TestHttpClient.head()
Make a HEAD request with a path of "" this is the same as calling head("").
|
ReceivedResponse |
TestHttpClient.head(java.lang.String path)
Make a HEAD request to the specified path.
|
ReceivedResponse |
TestHttpClient.options()
Make a OPTIONS request with a path of "" this is the same as calling options("").
|
ReceivedResponse |
TestHttpClient.options(java.lang.String path)
Make a OPTIONS request to the specified path.
|
ReceivedResponse |
TestHttpClient.patch()
Make a PATCH request with a path of "" this is the same as calling patch("").
|
ReceivedResponse |
TestHttpClient.patch(java.lang.String path)
Make a PATCH request to the specified path.
|
ReceivedResponse |
TestHttpClient.post()
Make a POST request with a path of "" this is the same as calling post("").
|
ReceivedResponse |
TestHttpClient.post(java.lang.String path)
Make a POST request to the specified path.
|
ReceivedResponse |
TestHttpClient.put()
Make a PUT request with a path of "" this is the same as calling put("").
|
ReceivedResponse |
TestHttpClient.put(java.lang.String path)
Make a PUT request to the specified path.
|
ReceivedResponse |
TestHttpClient.request(Action<? super RequestSpec> requestAction)
Executes the request as specified by the provided
RequestSpec . |
ReceivedResponse |
TestHttpClient.request(java.lang.String path,
Action<? super RequestSpec> requestAction)
Executes the request as specified by the provided
RequestSpec against the provided path. |