Package | Description |
---|---|
ratpack.http.client | |
ratpack.test.http |
Modifier and Type | Method and Description |
---|---|
default Promise<ReceivedResponse> |
HttpClient.get(URI uri) |
Promise<ReceivedResponse> |
HttpClient.get(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(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(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 |
---|---|
ReceivedResponse |
TestHttpClient.delete() |
ReceivedResponse |
TestHttpClient.delete(String path) |
ReceivedResponse |
TestHttpClient.get() |
ReceivedResponse |
TestHttpClient.get(String path) |
ReceivedResponse |
TestHttpClient.getResponse() |
ReceivedResponse |
TestHttpClient.head() |
ReceivedResponse |
TestHttpClient.head(String path) |
ReceivedResponse |
TestHttpClient.options() |
ReceivedResponse |
TestHttpClient.options(String path) |
ReceivedResponse |
TestHttpClient.patch() |
ReceivedResponse |
TestHttpClient.patch(String path) |
ReceivedResponse |
TestHttpClient.post() |
ReceivedResponse |
TestHttpClient.post(String path) |
ReceivedResponse |
TestHttpClient.put() |
ReceivedResponse |
TestHttpClient.put(String path) |