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

Mock.mock的回调函数可以获取请求的header信息吗? #497

Open
anybus opened this issue Nov 22, 2022 · 0 comments
Open

Mock.mock的回调函数可以获取请求的header信息吗? #497

anybus opened this issue Nov 22, 2022 · 0 comments

Comments

@anybus
Copy link

anybus commented Nov 22, 2022

我看回调只有一个options参数,打印了发现只有url/body/type等信息

比如获取用户信息,是根据header的token来取到对应的用户信息的,如果无法获取token,回调就不能灵活配置返回结果了

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