程序包 dev.utils.common

接口 HttpURLConnectionUtils.Callback

  • 封闭类:
    HttpURLConnectionUtils

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

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void onFail​(java.lang.Exception e)
      请求失败
      void onResponse​(java.lang.String result, long response)
      请求响应回调
    • 方法详细资料

      • onResponse

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

        void onFail​(java.lang.Exception e)
        请求失败
        参数:
        e - 失败异常