mitmproxy/examples
Anatoli Babenia cff98a30e2
Fix HAR dump (#4439)
* Fix `KeyError: 'Unknown options: hardump'` in HAR test_simple

The reason was an invalid import of `connections` which is gone
in d159897d98, but the loading error
was silently ignored (#4438) resulting in a misleading exception
at a later stage.

This still doesn't make the test suite run, because it is better
to fix one error at a time.

The way to run tests from examples.

    ln -sr test/conftest.py examples
    pytest examples/contrib/test_har_dump.py -k simpl

The way to see the execution flow with silenced exceptions.

    from hunter import trace, Q
    trace(Q(stdlib=False), ~Q(filename_contains='site-packages'))

* Fix `TypeError: invoke() takes 3 positional arguments but 4 were given`

* Fix `TypeError: 'bool' object is not callable`
2021-02-11 21:07:09 +01:00
..
addons move Headers/Message/Request/Response into mitmproxy.http 2021-02-05 08:43:15 +01:00
contrib Fix HAR dump (#4439) 2021-02-11 21:07:09 +01:00
keys.yaml typo 2018-05-27 19:40:26 +03:00
README.md restructure examples 2020-06-23 16:00:14 +02:00

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.