public class DefaultAsyncHttpClientRequest extends Object implements AsyncHttpClientRequest
AsyncHttpClientRequest implementation that uses apache async http client to execute streaming requests.| 构造器和说明 |
|---|
DefaultAsyncHttpClientRequest(org.apache.http.impl.nio.client.CloseableHttpAsyncClient asyncClient,
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor ioreactor,
org.apache.http.client.config.RequestConfig defaultConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
<T> void |
execute(URI uri,
String httpMethod,
RequestHttpEntity requestHttpEntity,
ResponseHandler<T> responseHandler,
Callback<T> callback)
execute async http request.
|
public DefaultAsyncHttpClientRequest(org.apache.http.impl.nio.client.CloseableHttpAsyncClient asyncClient,
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor ioreactor,
org.apache.http.client.config.RequestConfig defaultConfig)
public <T> void execute(URI uri, String httpMethod, RequestHttpEntity requestHttpEntity, ResponseHandler<T> responseHandler, Callback<T> callback) throws Exception
AsyncHttpClientRequestexecute 在接口中 AsyncHttpClientRequesturi - http urlhttpMethod - http request methodrequestHttpEntity - http request entityresponseHandler - http response handlercallback - http response callbackException - expublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2018–2024 Alibaba Group. All rights reserved.