Skip to content
New issue

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

请求头不打印 #241

Open
shiner0 opened this issue Mar 29, 2021 · 0 comments
Open

请求头不打印 #241

shiner0 opened this issue Mar 29, 2021 · 0 comments

Comments

@shiner0
Copy link

shiner0 commented Mar 29, 2021

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());//添加参数签名拦截器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant