mitmproxy/examples/complex/stream.py

7 lines
194 B
Python
Raw Normal View History

2016-07-08 01:37:33 +00:00
def responseheaders(flow):
2014-07-21 19:06:55 +00:00
"""
Enables streaming for all responses.
2017-07-04 08:49:49 +00:00
This is equivalent to passing `--set stream_large_bodies=1` to mitmproxy.
2014-07-21 19:06:55 +00:00
"""
2015-05-30 00:03:28 +00:00
flow.response.stream = True