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

如何同时执行请求替换和script脚本操作请求 #34

Open
TwinkleSevenStream opened this issue Aug 30, 2023 · 1 comment
Open

Comments

@TwinkleSevenStream
Copy link

例如:
mock.com 127.0.0.1:8080 script://handleGateway(a,b,c)

希望将mock.com的请求转发到127.0.0.1:8080,并通过script插件里写的handleGateway脚本对请求/响应进行处理。
目前这么写,会因为匹配原则的优先级,导致只有转发到127.0.0.1:8080生效,而script插件不生效。

请问如何同时执行请求替换和script脚本呢?

@avwo
Copy link
Member

avwo commented Sep 4, 2023

请求都交给 script 插件了,具体怎么转发要插件自己实现

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