接口 ResponseHandler<B extends Closeable,​T>

  • 类型参数:
    B - the original Response body type, could be InputStream or Reader
    T - the converted response body type.
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface ResponseHandler<B extends Closeable,​T>
    Handle response in blocking way.
    • 方法详细资料

      • handle

        T handle​(ResponseInfo info,
                 B body)
          throws IOException
        Handler response body with all info, return a transformed response body.
        返回:
        the value body convert to
        抛出:
        IOException