diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-20 14:59:58 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-23 10:41:57 +0530 |
commit | cc98b9c32f2554714d76121ce66e80b4e985fdc5 (patch) | |
tree | 083cc1bb6816e96a207f946b10d8b21c002051ea /mitmproxy/filt.py | |
parent | 6c05a0c9089baba1d3aeeefcb1dfe08e0b520c3f (diff) | |
download | mitmproxy-cc98b9c32f2554714d76121ce66e80b4e985fdc5.tar.gz mitmproxy-cc98b9c32f2554714d76121ce66e80b4e985fdc5.tar.bz2 mitmproxy-cc98b9c32f2554714d76121ce66e80b4e985fdc5.zip |
Add a marked filter
Diffstat (limited to 'mitmproxy/filt.py')
-rw-r--r-- | mitmproxy/filt.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mitmproxy/filt.py b/mitmproxy/filt.py index 8b647b22..6bdc1f03 100644 --- a/mitmproxy/filt.py +++ b/mitmproxy/filt.py @@ -80,6 +80,14 @@ class FErr(_Action): return True if f.error else False +class FMarked(_Action): + code = "marked" + help = "Match marked flows" + + def __call__(self, f): + return f.marked + + class FHTTP(_Action): code = "http" help = "Match HTTP flows" @@ -398,6 +406,7 @@ filt_unary = [ FAsset, FErr, FHTTP, + FMarked, FReq, FResp, FTCP, |