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

config可以调整成*PluginConfig类型?方便修改一些数据 #1474

Open
titrxw opened this issue Nov 5, 2024 · 3 comments
Open

config可以调整成*PluginConfig类型?方便修改一些数据 #1474

titrxw opened this issue Nov 5, 2024 · 3 comments

Comments

@titrxw
Copy link

titrxw commented Nov 5, 2024

type onHttpHeadersFunc[PluginConfig any] func(context HttpContext, config PluginConfig, log Log) types.Action

@CH3CHO
Copy link
Collaborator

CH3CHO commented Nov 5, 2024

根据Header修改Config?这是什么场景下的需求?

@titrxw
Copy link
Author

titrxw commented Nov 5, 2024

就一个flag标记变量的作用,我放context试试

@CH3CHO
Copy link
Collaborator

CH3CHO commented Nov 5, 2024

就一个flag标记变量的作用,我放context试试

如果是请求粒度的,放context吧

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

2 participants