mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 11:19:23 +00:00
29 lines
600 B
Python
29 lines
600 B
Python
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")
|