mitmproxy/test/scripts/all.py

29 lines
600 B
Python
Raw Normal View History

log = []
def clientconnect(ctx, cc):
ctx.log("XCLIENTCONNECT")
log.append("clientconnect")
def serverconnect(ctx, cc):
ctx.log("XSERVERCONNECT")
log.append("serverconnect")
2014-07-20 09:17:53 +00:00
def request(ctx, f):
ctx.log("XREQUEST")
log.append("request")
2014-07-20 09:17:53 +00:00
def response(ctx, f):
ctx.log("XRESPONSE")
log.append("response")
2014-07-20 09:17:53 +00:00
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")