mitmproxy/examples
Maximilian Hils 67885320c0 add ASGI support for embedded apps
This commit replaces our WSGI implementation with a new ASGI one,
which then uses `asgiref`'s compatibility mode to still support WSGI applications.
The ASGI implementation is a bit bare-bone, but good enough for our purposes.

The major changes are:

  - We now support ASGI apps.
  - Instead of taking connections out of mitmproxy's normal processing,
    we now just set flow.response and let things continue as usual.
    This allows users to see responses in mitmproxy, use the response hook
    to modify app responses, etc. Also important for us,
    this makes the new implementation work for shenanigans like sans-io.
2020-08-13 17:22:31 +02:00
..
addons add ASGI support for embedded apps 2020-08-13 17:22:31 +02:00
contrib Merge pull request #3962 from anneborcherding/feature/selenium-auth-addon 2020-07-15 13:54:48 +02:00
pathod format examples 2016-05-29 01:23:39 -07: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.