blob: 05a269210de9ef7e20f728522508b2f776389b76 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import time
import mitmproxy
from mitmproxy.script import concurrent
@concurrent # Remove this and see what happens
def request(flow):
mitmproxy.log("handle request: %s%s" % (flow.request.host, flow.request.path))
time.sleep(5)
mitmproxy.log("start request: %s%s" % (flow.request.host, flow.request.path))
|