mitmproxy/examples
xmo-odoo 434dabaa5e
Add portfile support (#7724)
Convenient when manipulating mitmproxy programmatically, as it's often
useful to specify port 0 (for all sorts of servers) but then the user
needs a way to retrieve the actual port being used.

mitmproxy logs the bound ports out by default, however because it logs
to the fully buffered stdout *and* can generate quite a bit of log,
this tends to be inconvenient. Writing out a file at a user-specified
location makes it much easier for them to poll, and using json even if
there is a minor race the user can just keep reading until they see a
valid JSON file.
2025-05-23 16:49:08 +02:00
..
addons introduce new contentview API (#7623) 2025-04-21 14:56:58 +02:00
contrib Add portfile support (#7724) 2025-05-23 16:49:08 +02:00
keys.yaml
README.md

Mitmproxy Examples

Mitmproxy has a powerful scripting API that allows you to control almost any aspect of traffic being proxied. In fact, much of mitmproxys own core functionality is implemented using the exact same API (see mitmproxy/addons).

⚠️ If you are browsing this on GitHub, make sure to select the git tag matching your mitmproxy version.