mitmproxy/test/netlib
Maximilian Hils 6032c4f235 message.content -> .raw_content, implement .text
This PR improves our handling of HTTP message body encodings:

- The unaltered message body is now accessible as `.raw_content`
- The "content-encoding"-decoded content (i.e. gzip removed) content
  is not `.content`, as this is what we want in 99% of the cases.
- `.text` now provides the "content-encoding"-decoded and then
  "content-type charset"-decoded message body.
- The decoded values for `.content` and `.text` are cached,
  so that repeated access and `x.text = x.text` is cheap.
- The `decoded()` decorator is now deprecated, as we can now just use
  `.content`. Similarly `HTTPMessage.get_decoded_content()` is
  deprecated.
2016-07-02 01:51:47 -07:00
..
data more style cleanup 2016-05-29 13:43:20 +02:00
http message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
tools py3++ 2016-04-13 22:34:28 -07:00
websockets more style cleanup 2016-05-29 13:43:20 +02:00
__init__.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_basetypes.py Satisfy flake8 2016-05-31 19:58:28 +12:00
test_certutils.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_debug.py fix debug mode on Windows 2016-06-13 18:06:44 -07:00
test_encoding.py message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
test_human.py Utils cleanups 2016-06-07 17:12:52 +12:00
test_imports.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_multidict.py Remove odict 2016-06-09 13:28:43 +12:00
test_socks.py cleanup imports with flake8 2016-05-28 14:43:32 +02:00
test_strutils.py minor fixes 2016-07-01 17:49:18 -07:00
test_tcp.py Fix Python3 tests 2016-06-14 16:13:50 +12:00
test_utils.py Shift a bunch more string-related functions to strutils 2016-06-02 13:04:19 +12:00
test_version_check.py cleanup imports with flake8 2016-05-28 14:43:32 +02:00
test_wsgi.py more style cleanup 2016-05-29 13:43:20 +02:00
tservers.py Start rolling out leak detection in netlib 2016-06-14 14:32:18 +12:00