程序包 dev.utils.common

接口 HttpURLConnectionUtils.Callback

封闭类:
HttpURLConnectionUtils

public static interface HttpURLConnectionUtils.Callback
detail: 请求回调
作者:
Ttt
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    请求失败
    void
    onResponse(String result, long response)
    请求响应回调
  • 方法详细资料

    • onResponse

      void onResponse(String result, long response)
      请求响应回调
      参数:
      result - 请求结果
      response - 请求响应时间
    • onFail

      void onFail(Throwable error)
      请求失败
      参数:
      error - 失败异常