public class AhcHttpClient extends AbstractAsyncOnlyHttpClient
CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
AhcHttpClient() |
AhcHttpClient(AhcHttpClientConfig ahcConfig) |
AhcHttpClient(org.asynchttpclient.AsyncHttpClient ahcClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
byte[] bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequest.ResponseConverter<T> converter) |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
File bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequest.ResponseConverter<T> converter) |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
String bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequest.ResponseConverter<T> converter) |
execute, execute, executepublic AhcHttpClient()
public AhcHttpClient(AhcHttpClientConfig ahcConfig)
public AhcHttpClient(org.asynchttpclient.AsyncHttpClient ahcClient)
public void close()
throws IOException
IOExceptionpublic <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
Copyright © 2017. All rights reserved.