接口 RestClient.RequestHeadersSpec.ExchangeFunction<T>

类型参数:
T - the type the response will be transformed to
封闭接口:
RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public static interface RestClient.RequestHeadersSpec.ExchangeFunction<T>
  • 方法概要

    修饰符和类型
    方法
    说明
    exchange(HttpRequest clientRequest, ClientHttpResponse clientResponse)
    Exchange the given response into a type T.
  • 方法详细资料

    • exchange

      T exchange(HttpRequest clientRequest, ClientHttpResponse clientResponse) throws IOException
      Exchange the given response into a type T.
      参数:
      clientRequest - the request
      clientResponse - the response
      返回:
      the exchanged type
      抛出:
      IOException - in case of I/O errors