aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/complex/stream.py')
-rw-r--r--examples/complex/stream.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/complex/stream.py b/examples/complex/stream.py
new file mode 100644
index 00000000..1993cf7f
--- /dev/null
+++ b/examples/complex/stream.py
@@ -0,0 +1,6 @@
+def responseheaders(flow):
+ """
+ Enables streaming for all responses.
+ This is equivalent to passing `--stream 0` to mitmproxy.
+ """
+ flow.response.stream = True