mitmproxy/test/mitmproxy
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
completion
contentviews Add a msgpack content viewer. 2020-07-22 16:47:08 +03:00
coretypes
data Add test case for flow with no response. 2020-07-22 10:05:03 -04:00
fuzzing
io lint! 2020-07-22 18:28:40 +02:00
net add ASGI support for embedded apps 2020-08-13 17:22:31 +02:00
platform
proxy fix flaky test socket 2020-07-16 22:13:48 +02:00
script
tools Merge pull request #4058 from Vane11ope/vane11ope/fix 2020-07-05 04:04:44 +02:00
utils Merge pull request #4088 from mhils/http-authority 2020-07-19 11:43:43 +02:00
__init__.py
test_addonmanager.py
test_certs.py
test_command.py fix #3801 2020-02-04 19:26:14 +01:00
test_command_lexer.py add test for console error 2020-05-01 16:07:29 +05:30
test_connections.py fix tls test on Windows 2020-04-03 12:05:06 +02:00
test_controller.py
test_ctx.py
test_eventsequence.py
test_exceptions.py
test_flow.py HTTPRequest -> http.Request, add request.authority 2020-07-16 16:55:15 +02:00
test_flowfilter.py match HTTP-WebSocket handshake flow with ~websocket 2020-07-16 17:49:47 +02:00
test_fuzzing.py
test_http.py HTTPRequest -> http.Request, add request.authority 2020-07-16 16:55:15 +02:00
test_log.py
test_master.py
test_options.py
test_optmanager.py
test_proxy.py
test_stateobject.py
test_taddons.py
test_tcp.py
test_typemanager.py
test_types.py
test_version.py mitmproxy --version: incorporate non-annotated tags 2019-12-21 02:18:26 +01:00
test_websocket.py
tservers.py