public class AhcHttpClient extends Object implements HttpClient
HttpClient.Config| Constructor and Description |
|---|
AhcHttpClient(AhcHttpClientConfig ahcConfig) |
AhcHttpClient(org.asynchttpclient.DefaultAsyncHttpClient ahcClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
String bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequestAsync.ResponseConverter<T> converter) |
public AhcHttpClient(AhcHttpClientConfig ahcConfig)
public AhcHttpClient(org.asynchttpclient.DefaultAsyncHttpClient ahcClient)
public void close()
throws IOException
close in interface HttpClientIOExceptionpublic <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequestAsync.ResponseConverter<T> converter)
executeAsync in interface HttpClientCopyright © 2016. All rights reserved.