接口 BaseListener<Request,Response,Context>


public interface BaseListener<Request,Response,Context>
监听上下文
从以下版本开始:
1.0.2
作者:
mhuang
  • 方法详细资料

    • onRequest

      void onRequest(Request request, Context context)
      执行前监听上下文
      参数:
      request - 请求
      context - 上下文
    • onResponse

      void onResponse(Request request, Response response, Context context)
      请求后监听上下文
      参数:
      request - 请求
      response - 应答
      context - 上下文
    • onError

      void onError(Request request, Throwable e, Context context)
      请求异常监听上下文
      参数:
      request - 请求
      e - 异常
      context - 上下文