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
全局添加headers可以通过重写pont的方式完成;但目前部分接口请求需要添加headers,这种情况下如何传headers?
The text was updated successfully, but these errors were encountered:
如果是使用PontCore,request(params, options = {}),直接把headers传到options里,PontCore调用的fetch,参考https://developer.mozilla.org/zh-CN/docs/Web/API/fetch
如果是自定义的请求方法,需要自己修改模板实现(templatePath)
Sorry, something went wrong.
No branches or pull requests
全局添加headers可以通过重写pont的方式完成;但目前部分接口请求需要添加headers,这种情况下如何传headers?
The text was updated successfully, but these errors were encountered: