public class OkHttpClientImpl extends java.lang.Object implements HttpClient
| Constructor and Description |
|---|
OkHttpClientImpl(long timeout) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.String> |
get(java.lang.String url)
Performs a GET request using the provided url.
|
public java.util.concurrent.CompletableFuture<java.lang.String> get(java.lang.String url)
HttpClientThis call is asynchronous, the request is sent and a completable future is returned. The future is completed when the result of the request returns. The timeout of the request is determined in the implementation of the HttpClient.
get in interface HttpClienturl - a valid url representing a call to the Participant API.