类的使用
com.luna.common.net.async.CustomAsyncHttpResponse
使用CustomAsyncHttpResponse的程序包
-
com.luna.common.net.async中CustomAsyncHttpResponse的使用
修饰符和类型方法说明protected CustomAsyncHttpResponseCustomResponseConsumer.buildResult(org.apache.hc.core5.http.HttpResponse response, byte[] entity, org.apache.hc.core5.http.ContentType contentType) static CustomAsyncHttpResponseCustomAsyncHttpResponse.copy(org.apache.hc.core5.http.HttpResponse original) static CustomAsyncHttpResponseCustomAsyncHttpResponse.create(int code) static CustomAsyncHttpResponseCustomAsyncHttpResponse.create(int code, byte[] content) static CustomAsyncHttpResponseCustomAsyncHttpResponse.create(int code, byte[] content, org.apache.hc.core5.http.ContentType contentType) static CustomAsyncHttpResponsestatic CustomAsyncHttpResponseCustomAsyncHttpResponse.create(int code, String content, org.apache.hc.core5.http.ContentType contentType) -
com.luna.common.net.high中CustomAsyncHttpResponse的使用
修饰符和类型方法说明static <T> CustomAsyncHttpResponseAsyncHttpUtils.doAsyncRequest(org.apache.hc.core5.http.nio.AsyncRequestProducer producer, AsyncHttpClientResponseHandler<T> responseHandler) static CustomAsyncHttpResponseAsyncHttpUtils.doAsyncRequest(org.apache.hc.core5.http.nio.AsyncRequestProducer producer, org.apache.hc.core5.concurrent.FutureCallback<CustomAsyncHttpResponse> callback) static <T> CustomAsyncHttpResponseAsyncHttpUtils.doGet(String host, String path, Map<String, String> headers, Map<String, String> queries, AsyncHttpClientResponseHandler<T> responseHandler) static <T> CustomAsyncHttpResponseAsyncHttpUtils.doPost(String host, String path, Map<String, String> headers, Map<String, String> queries, AsyncHttpClientResponseHandler<T> responseHandler) static <T> CustomAsyncHttpResponseAsyncHttpUtils.doPost(String host, String path, Map<String, String> headers, Map<String, String> queries, File file, AsyncHttpClientResponseHandler<T> responseHandler) static <T> CustomAsyncHttpResponseAsyncHttpUtils.doPost(String host, String path, Map<String, String> headers, Map<String, String> queries, String body, AsyncHttpClientResponseHandler<T> responseHandler) static <T> CustomAsyncHttpResponseAsyncHttpUtils.doPost(String host, String path, Map<String, String> headers, Map<String, String> queries, Path file, AsyncHttpClientResponseHandler<T> responseHandler) 返回变量类型为CustomAsyncHttpResponse的类型的com.luna.common.net.high中的方法修饰符和类型方法说明static Future<CustomAsyncHttpResponse>AsyncHttpUtils.doAsyncRequestFuture(org.apache.hc.core5.http.nio.AsyncRequestProducer producer, org.apache.hc.core5.concurrent.FutureCallback<CustomAsyncHttpResponse> callback) 类型变量类型为CustomAsyncHttpResponse的com.luna.common.net.high中的方法参数修饰符和类型方法说明static CustomAsyncHttpResponseAsyncHttpUtils.doAsyncRequest(org.apache.hc.core5.http.nio.AsyncRequestProducer producer, org.apache.hc.core5.concurrent.FutureCallback<CustomAsyncHttpResponse> callback) static Future<CustomAsyncHttpResponse>AsyncHttpUtils.doAsyncRequestFuture(org.apache.hc.core5.http.nio.AsyncRequestProducer producer, org.apache.hc.core5.concurrent.FutureCallback<CustomAsyncHttpResponse> callback)