mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
parent
e9ab1debea
commit
c56ca19d7d
@ -6,7 +6,7 @@ from mitmproxy import ctx
|
||||
|
||||
@concurrent # Remove this and see what happens
|
||||
def request(flow):
|
||||
# You don't want to use mitmproxy.ctx from a different thread
|
||||
ctx.log.info("handle request: %s%s" % (flow.request.host, flow.request.path))
|
||||
# This is ugly in mitmproxy's UI, but you don't want to use mitmproxy.ctx.log from a different thread.
|
||||
print("handle request: %s%s" % (flow.request.host, flow.request.path))
|
||||
time.sleep(5)
|
||||
ctx.log.info("start request: %s%s" % (flow.request.host, flow.request.path))
|
||||
print("start request: %s%s" % (flow.request.host, flow.request.path))
|
||||
|
Loading…
Reference in New Issue
Block a user