aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stream.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-07-31 22:29:13 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-07-31 22:29:13 +0200
commite9401a2123f416f8dd4c24bb4bbc74f297369133 (patch)
treeafebf68d1091d487ef64083962992ea7b703a80e /examples/stream.py
parentf5fb1138fdda77ec4a3bb5493479d2f56cdb0851 (diff)
parent3e3dbee936bb71e813d50937118eebff4ba23617 (diff)
downloadmitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.tar.gz
mitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.tar.bz2
mitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.zip
Merge branch 'stream'
Conflicts: libmproxy/protocol/http.py
Diffstat (limited to 'examples/stream.py')
-rw-r--r--examples/stream.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/stream.py b/examples/stream.py
new file mode 100644
index 00000000..f9f03c3e
--- /dev/null
+++ b/examples/stream.py
@@ -0,0 +1,5 @@
+def responseheaders(ctx, flow):
+ """
+ Enables streaming for all responses.
+ """
+ flow.response.stream = True \ No newline at end of file