mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 18:57:22 +00:00
- Move ScriptContext into script module - Use mock module instead of hand-rolled mock objects in tests
8 lines
259 B
Python
8 lines
259 B
Python
import time
|
|
from libmproxy.script import concurrent
|
|
|
|
@concurrent
|
|
def request(context, flow):
|
|
print "handle request: %s%s" % (flow.request.host, flow.request.path)
|
|
time.sleep(5)
|
|
print "start request: %s%s" % (flow.request.host, flow.request.path)
|