mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-28 20:24:59 +08:00
fix #110
This commit is contained in:
@@ -20,6 +20,12 @@ class ScriptContext:
|
||||
"""
|
||||
self._master.add_event(message, level)
|
||||
|
||||
def kill_flow(self, f):
|
||||
"""
|
||||
Kills a flow immediately. No further data will be sent to the client or the server.
|
||||
"""
|
||||
f.kill(self._master)
|
||||
|
||||
def duplicate_flow(self, f):
|
||||
"""
|
||||
Returns a duplicate of the specified flow. The flow is also
|
||||
|
||||
Reference in New Issue
Block a user