mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
67885320c0
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. |
||
---|---|---|
.. | ||
anatomy.py | ||
commands-flows.py | ||
commands-paths.py | ||
commands-simple.py | ||
contentview.py | ||
duplicate-modify-replay.py | ||
events-http-specific.py | ||
events-tcp-specific.py | ||
events-websocket-specific.py | ||
events.py | ||
filter-flows.py | ||
http-add-header.py | ||
http-modify-form.py | ||
http-modify-query-string.py | ||
http-redirect-requests.py | ||
http-reply-from-proxy.py | ||
http-stream-modify.py | ||
http-stream-simple.py | ||
http-trailers.py | ||
internet_in_mirror.py | ||
io-read-saved-flows.py | ||
io-write-flow-file.py | ||
log-events.py | ||
nonblocking.py | ||
options-configure.py | ||
options-simple.py | ||
scripting-minimal-example.py | ||
tcp-simple.py | ||
websocket-inject-message.py | ||
websocket-simple.py | ||
wsgi-flask-app.py |