接口 RestClient.RequestHeadersSpec.ExchangeFunction<T>
- 类型参数:
T- the type the response will be transformed to
- 封闭接口:
- RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Defines the contract for
RestClient.RequestHeadersSpec.exchange(ExchangeFunction).-
方法概要
修饰符和类型方法说明exchange(HttpRequest clientRequest, ClientHttpResponse clientResponse) Exchange the given response into a typeT.
-
方法详细资料
-
exchange
Exchange the given response into a typeT.- 参数:
clientRequest- the requestclientResponse- the response- 返回:
- the exchanged type
- 抛出:
IOException- in case of I/O errors
-