mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +00:00
08895e9ba6
- restructure examples (fix #4031) - remove example dependencies from setup.py, we do not need special dependencies for our supported addons. - unify how we generate docs from code - improve example docs
15 lines
368 B
Python
15 lines
368 B
Python
"""
|
|
Select which responses should be streamed.
|
|
|
|
Enable response streaming for all HTTP flows.
|
|
This is equivalent to passing `--set stream_large_bodies=1` to mitmproxy.
|
|
"""
|
|
|
|
|
|
def responseheaders(flow):
|
|
"""
|
|
Enables streaming for all responses.
|
|
This is equivalent to passing `--set stream_large_bodies=1` to mitmproxy.
|
|
"""
|
|
flow.response.stream = True
|