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

HttpClient 支持设置请求头 #1

Open
Zclhlmgqzc opened this issue Jul 3, 2021 · 1 comment
Open

HttpClient 支持设置请求头 #1

Zclhlmgqzc opened this issue Jul 3, 2021 · 1 comment

Comments

@Zclhlmgqzc
Copy link

Zclhlmgqzc commented Jul 3, 2021

设置 header,支持 JWT 规范,服务端在解析 body 之前,通过 header 判断权限后再对 body 进行序列化

headers: {
  'Authorization': 'Bearer ' + token
}
@k8w k8w added the enhancement label Jul 3, 2021
@k8w
Copy link
Owner

k8w commented Jul 3, 2021

感谢建议,会增加在下个更新版本中:

  • 增加在 callApi 时设置 HTTP Header

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

No branches or pull requests

2 participants