We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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());//添加参数签名拦截器
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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());//添加参数签名拦截器
The text was updated successfully, but these errors were encountered: