aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/eventsequence.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-04-28 17:01:48 +1200
committerAldo Cortesi <aldo@nullcube.com>2017-04-29 08:01:00 +1200
commit0b090f7ae1221eba3972c99b21cf3dc516420895 (patch)
treeb8e3c66122945cd5ccca1edc09978977040ac8d1 /mitmproxy/eventsequence.py
parentb537997f4f5d7c33562414a414913b6cd89f99c3 (diff)
downloadmitmproxy-0b090f7ae1221eba3972c99b21cf3dc516420895.tar.gz
mitmproxy-0b090f7ae1221eba3972c99b21cf3dc516420895.tar.bz2
mitmproxy-0b090f7ae1221eba3972c99b21cf3dc516420895.zip
Commands, core update event
This patch: - Introduces a core update() event that should be invoked whenever flows are changed outside of the normal lifecycle. - Extend view.resolve to know about @all, which matches all flows in the view. - Add a core flow.resume comand, which resumes flows and broadcasts an update event. - Define flow list bindings for: A -> flow.resume @all a -> flow.resume @focus d -> view.remove @focus z -> view.remove @all
Diffstat (limited to 'mitmproxy/eventsequence.py')
-rw-r--r--mitmproxy/eventsequence.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mitmproxy/eventsequence.py b/mitmproxy/eventsequence.py
index 30c037f1..4e199972 100644
--- a/mitmproxy/eventsequence.py
+++ b/mitmproxy/eventsequence.py
@@ -35,6 +35,7 @@ Events = frozenset([
"load",
"running",
"tick",
+ "update",
])