mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
mirror of https://github.com/vee1e/mitmproxy - An interactive TLS-capable intercepting HTTP proxy for penet
* docs: document addon live-reload + testing pattern Issue #6377 asked for addon development docs covering hot reload and testing. mitmproxy already watches scripts loaded with -s for changes and re-imports them on save (mitmproxy/addons/script.py: Script.watcher and the unconditional Script(s, True) at line 218), but that behavior was undocumented, and there was no canonical example of how to unit-test a custom addon with mitmproxy.test.taddons / mitmproxy.test.tflow. Add a "Developing Addons" section to docs/src/content/addons/overview.md with two subsections: - Live Reloading: explains the file-watcher behavior, including which errors leave the previous version unloaded and which don't. - Testing Addons: a small example that unit-tests the Counter addon from anatomy.py using taddons.context() and tflow.tflow(), plus a pointer to tctx.cycle() and the existing test/mitmproxy/addons/ tests for patterns that need the full event sequence. No code changes. * reduce testing section Testing helpers are currently a bit ugly and not part of the public API, so let's not put them front center in the docs. --------- Co-authored-by: Chris (ChrisJr404) <11917633+ChrisJr404@users.noreply.github.com> Co-authored-by: Maximilian Hils <git@maximilianhils.com> |
||
|---|---|---|
| .github | ||
| docs | ||
| examples | ||
| mitmproxy | ||
| release | ||
| test | ||
| web | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| codecov.yml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| SECURITY.md | ||
| uv.lock | ||
mitmproxy
mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console
interface for HTTP/1, HTTP/2, and WebSockets.
mitmdump is the command-line version of mitmproxy. Think tcpdump for HTTP.
mitmweb is a web-based interface for mitmproxy.
Installation
The installation instructions are here. If you want to install from source, see CONTRIBUTING.md.
Documentation & Help
General information, tutorials, and precompiled binaries can be found on the mitmproxy website.
The documentation for mitmproxy is available on our website:
If you have questions on how to use mitmproxy, please use GitHub Discussions!
Contributing
As an open source project, mitmproxy welcomes contributions of all forms.