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) |
public DefaultAsyncHttpClientRequest(org.apache.http.impl.nio.client.CloseableHttpAsyncClient asyncClient)
public <T> void execute(URI uri, String httpMethod, RequestHttpEntity requestHttpEntity, Type responseType, Callback<T> callback) throws Exception
AsyncHttpClientRequestexecute 在接口中 AsyncHttpClientRequesturi - http urlhttpMethod - http request methodrequestHttpEntity - http request entityresponseType - http response typecallback - http response callbackException - expublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2018–2020 Alibaba Group. All rights reserved.