接口 AsyncHttpClientResponseHandler<T>
- 所有已知实现类:
AsyncValidatingResponseHandler
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Handler that encapsulates the process of generating a response object
from a
ClassicHttpResponse.- 从以下版本开始:
- 4.0
-
方法概要
修饰符和类型方法说明<R extends org.apache.hc.core5.http.HttpResponse>
voidhandleResponse(R response) Processes anClassicHttpResponseand returns some value corresponding to that response.
-
方法详细资料
-
handleResponse
<R extends org.apache.hc.core5.http.HttpResponse> void handleResponse(R response) Processes anClassicHttpResponseand returns some value corresponding to that response.- 参数:
response- The response to process- 抛出:
IOException- in case of a problem or the connection was aborted
-