public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
Promise<ReceivedResponse> |
get(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> |
post(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> |
request(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.
|
Promise<ReceivedResponse> get(Action<? super RequestSpec> action)
action - An action that will act on the RequestSpecReceivedResponsePromise<ReceivedResponse> post(Action<? super RequestSpec> action)
action - An action that will act on the RequestSpecReceivedResponsePromise<ReceivedResponse> request(Action<? super RequestSpec> action)
action - An action that will act on the RequestSpecReceivedResponse