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

web支持写入自定义header #204

Closed
ylscsdb opened this issue Oct 31, 2023 · 0 comments · Fixed by #205
Closed

web支持写入自定义header #204

ylscsdb opened this issue Oct 31, 2023 · 0 comments · Fixed by #205

Comments

@ylscsdb
Copy link
Collaborator

ylscsdb commented Oct 31, 2023

可在对应的hook中,将需要写入的header数据写入全局缓存数据user_header中,打开页面前会获取user_header数据写入,例如

from flybirds.core.global_context import GlobalContext

def before_all_extend(context):
    GlobalContext.set_global_cache("user_header", {'flytest': 'My Custom User Agent'})
@ylscsdb ylscsdb linked a pull request Oct 31, 2023 that will close this issue
clgwlg added a commit that referenced this issue Oct 31, 2023
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

Successfully merging a pull request may close this issue.

1 participant