diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-07-21 21:06:55 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-07-21 21:06:55 +0200 |
commit | 4b4a18a2e4d7cf3e8862192b68f5a2295da9acbe (patch) | |
tree | 0083b563b6bea92108acb0cb348f721558eb02ba /examples/stub.py | |
parent | 562ac9e721c33b05e8889d4932dede794a9746a8 (diff) | |
download | mitmproxy-4b4a18a2e4d7cf3e8862192b68f5a2295da9acbe.tar.gz mitmproxy-4b4a18a2e4d7cf3e8862192b68f5a2295da9acbe.tar.bz2 mitmproxy-4b4a18a2e4d7cf3e8862192b68f5a2295da9acbe.zip |
add --stream options, various fixes
Diffstat (limited to 'examples/stub.py')
-rw-r--r-- | examples/stub.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/stub.py b/examples/stub.py index 78cbfcf2..0cf67db7 100644 --- a/examples/stub.py +++ b/examples/stub.py @@ -27,6 +27,15 @@ def request(ctx, flow): """ ctx.log("request") + +def responseheaders(ctx, flow): + """ + Called when the response headers for a server response have been received, + but the response body has not been processed yet. Can be used to tell mitmproxy + to stream the response. + """ + ctx.log("responseheaders") + def response(ctx, flow): """ Called when a server response has been received. |