public class Requester extends Object implements Closeable
Constructor and Description |
---|
Requester(String apiKey,
org.asynchttpclient.AsyncHttpClient client)
Creates a requester with APIKEY and specified CLIENT.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletableFuture<org.asynchttpclient.Response> |
getRequestAsync(String rootUrl,
String relativeUrl,
List<org.asynchttpclient.Param> params)
Sends a get request to rootUrl + relativeUrl asynchronously.
|
public Requester(String apiKey, org.asynchttpclient.AsyncHttpClient client)
public CompletableFuture<org.asynchttpclient.Response> getRequestAsync(String rootUrl, String relativeUrl, List<org.asynchttpclient.Param> params)
rootUrl
- relativeUrl
- public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019. All rights reserved.