mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
31 lines
490 B
Python
31 lines
490 B
Python
import time
|
|
from libmproxy.script import concurrent
|
|
|
|
@concurrent
|
|
def request(context, flow):
|
|
time.sleep(0.1)
|
|
|
|
|
|
@concurrent
|
|
def response(context, flow):
|
|
context.log("response")
|
|
|
|
|
|
@concurrent
|
|
def error(context, err):
|
|
context.log("error")
|
|
|
|
|
|
@concurrent
|
|
def clientconnect(context, cc):
|
|
context.log("clientconnect")
|
|
|
|
|
|
@concurrent
|
|
def clientdisconnect(context, dc):
|
|
context.log("clientdisconnect")
|
|
|
|
|
|
@concurrent
|
|
def serverconnect(context, sc):
|
|
context.log("serverconnect") |