Hey,
I’d like to be able to write a script that will directly return a response to the client instead of attempting to carry through the request at all.
Is there support within mitmproxy to do this? I see from reading pydoc that mitmproxy.flow.Flow has some various methods like kill(), revert(), resume(), but I don’t think any of them do what I want them to do.
This might be an atypical use case, and if it helps, the client won’t be making a request to a real service, so skipping making the actual request isn’t really absolutely necessary- I just need to forge the response completely.
Thanks