mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 19:08:44 +00:00
25 lines
504 B
Python
25 lines
504 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, r):
|
|
ctx.log("XREQUEST")
|
|
log.append("request")
|
|
|
|
def response(ctx, r):
|
|
ctx.log("XRESPONSE")
|
|
log.append("response")
|
|
|
|
def clientdisconnect(ctx, cc):
|
|
ctx.log("XCLIENTDISCONNECT")
|
|
log.append("clientdisconnect")
|
|
|
|
def error(ctx, cc):
|
|
ctx.log("XERROR")
|
|
log.append("error")
|