mitmproxy/mitmproxy
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
..
console message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
contrib mitmproxy.tnetstring -> mitmproxy.contrib.tnetstring 2016-06-21 23:53:59 +05:30
flow message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
models message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
onboarding use module-level imports only 2016-05-31 19:06:57 -07:00
platform py3++: mitmproxy.platform.pf 2016-06-22 13:38:00 +05:30
protocol message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
proxy py3++: mitmproxy.proxy 2016-06-22 13:37:16 +05:30
script minor fixes 2016-06-28 23:48:19 -07:00
web message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
__init__.py combine projects 2016-02-18 13:03:40 +01:00
cmdline.py fix mysterious tox issue 2016-06-28 19:26:08 -07:00
contentviews.py message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
controller.py py3++ 2016-06-19 12:00:37 +02:00
dump.py message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
exceptions.py minor fixes 2016-06-06 19:10:19 -07:00
filt.py message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
main.py debug: On SIGUSR2, we dump tracebacks for all threads to screen 2016-06-11 23:07:42 +12:00
stateobject.py update to latest typing release 2016-06-29 03:03:23 -07:00
utils.py Utils cleanups 2016-06-07 17:12:52 +12:00