Hacker News new | ask | show | jobs
by triztian 2191 days ago
I've found mitmproxy (https://mitmproxy.org) in reverse mode really useful. I'm a mobile dev and when the backend work is still pending I usually mock the backend requirements by selectively patching or adding endpoint support, it can be used like so:

    mitmproxy --mode reverse:https://my.privateapi.com -s ./path/to/mockscript.py

This allows me to implement most of the UI and server interactions w/o being blocked by server work.
1 comments

Oh, this looks interesting. Thank you for the pointer.

I think we can use both: https://docs.mitmproxy.org/stable/addons-scripting/

For mocking, and dump/replay for debugging for some of our projects.

https://docs.mitmproxy.org/stable/tute-clientreplay/