RxEasyHttp icon indicating copy to clipboard operation
RxEasyHttp copied to clipboard

请求头不打印

Open shiner0 opened this issue 5 years ago • 0 comments

EasyHttp.getInstance() //可以全局统一设置全局URL .setBaseUrl(AppConstant.BASE_URL)//设置全局URL url只能是域名 或者域名+端口号 // 打开该调试开关并设置TAG,不需要就不要加入该行 // 最后的true表示是否打印内部异常,一般打开方便调试错误 .debug("EasyHttp", true) .setCacheMode(CacheMode.NO_CACHE) //如果使用默认的60秒,以下三行也不需要设置 .setReadTimeOut(60 * 1000) .setWriteTimeOut(60 * 100) .setConnectTimeout(60 * 100) .setRetryCount(3) .setRetryDelay(500) .setRetryIncreaseDelay(500) .addCommonHeaders(headers) .addInterceptor(new CustomSignInterceptor());//添加参数签名拦截器

shiner0 avatar Mar 29 '21 10:03 shiner0