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

Feature: 请求数据传headers参数,requestConfig中取不到,希望可以扩展 #42

Closed
wangsitingting opened this issue Jul 27, 2020 · 3 comments

Comments

@wangsitingting
Copy link

Description

bizRequestAdapter(requestConfig) {
   const { url, params, method } = requestConfig;
  // requestConfig参数能取到url, params, method等参数,但是取不到headers参数
    ......
}

希望扩展一些参数

Solution

bizRequestAdapter(requestConfig) {
   const { header } = requestConfig;
  // 可以取到headers等一些参数
  .....
}
@wangsitingting wangsitingting changed the title Feature: Feature: 请求数据传headers参数取不到,希望可以扩展 Jul 27, 2020
@wangsitingting wangsitingting changed the title Feature: 请求数据传headers参数取不到,希望可以扩展 Feature: 请求数据传headers参数,requestConfig中取不到,希望可以扩展 Jul 27, 2020
@shixintian
Copy link

  • 1,解决了吗

@slq521
Copy link
Collaborator

slq521 commented Aug 14, 2020

前端手动设置的headers是可以取到的,bizRequestAdapter处理的是请求前的数据,暂不支持返回默认请求头headers。

@wangsitingting
Copy link
Author

bizRequestAdapter中可以取到请求配置的header

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

3 participants