diff options
Diffstat (limited to 'mitmproxy/test/scripts/all.py')
-rw-r--r-- | mitmproxy/test/scripts/all.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mitmproxy/test/scripts/all.py b/mitmproxy/test/scripts/all.py new file mode 100644 index 00000000..dad2aade --- /dev/null +++ b/mitmproxy/test/scripts/all.py @@ -0,0 +1,36 @@ +log = [] + + +def clientconnect(ctx, cc): + ctx.log("XCLIENTCONNECT") + log.append("clientconnect") + + +def serverconnect(ctx, cc): + ctx.log("XSERVERCONNECT") + log.append("serverconnect") + + +def request(ctx, f): + ctx.log("XREQUEST") + log.append("request") + + +def response(ctx, f): + ctx.log("XRESPONSE") + log.append("response") + + +def responseheaders(ctx, f): + ctx.log("XRESPONSEHEADERS") + log.append("responseheaders") + + +def clientdisconnect(ctx, cc): + ctx.log("XCLIENTDISCONNECT") + log.append("clientdisconnect") + + +def error(ctx, cc): + ctx.log("XERROR") + log.append("error") |