[feature] 支持在脚本中mock响应
Open
@MegatronKing is already working on this.
Since May 27, 2024.
enhancement
p1
- Dominant language
- No language data
- Stars
- 6.8k
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
mitmproxy的脚本支持在onRequest中flow.response = http.Response.make(),这样就可以跳过向服务器发送请求这一阶段,直接伪造一个响应返回,reqable的脚本目前好像不支持这样的功能
Describe the solution you'd like
支持在onRequest中直接返回响应,跳过向服务器发送请求
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.