Package | Description |
---|---|
ratpack.http.client |
The 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()
Make a DELETE request with a path of "" this is the same as calling delete("")
|
ReceivedResponse |
TestHttpClient.delete(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(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(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(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(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(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(String path)
Make a PUT request to the specified path.
|