mitmproxy/test
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
..
bench Fix ResourceWarning: unclosed file, prevent resource leaks 2019-01-06 15:06:30 +01:00
examples restructure examples 2020-06-23 16:00:14 +02:00
helper_tools Clean up test/helper_tools directory 2018-04-16 09:20:22 +12:00
mitmproxy add ASGI support for embedded apps 2020-08-13 17:22:31 +02:00
pathod HTTPRequest -> http.Request, add request.authority 2020-07-16 16:55:15 +02:00
release Use Github Actions for CI (#3713) 2019-11-19 18:15:08 +01:00
__init__.py move tests into shared folder 2016-02-15 16:34:22 +01:00
conftest.py test: shift test_data out of our public API 2018-04-23 19:16:33 +12:00
filename_matching.py protobuf: tests implemented, full coverage 2018-07-17 19:23:01 +02:00
full_coverage_plugin.py bump more deps 2019-09-28 23:29:13 +02:00
individual_coverage.py bump more deps 2019-09-28 23:29:13 +02:00