mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Add a marked filter
This commit is contained in:
parent
6c05a0c908
commit
cc98b9c32f
@ -80,6 +80,14 @@ class FErr(_Action):
|
|||||||
return True if f.error else False
|
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):
|
class FHTTP(_Action):
|
||||||
code = "http"
|
code = "http"
|
||||||
help = "Match HTTP flows"
|
help = "Match HTTP flows"
|
||||||
@ -398,6 +406,7 @@ filt_unary = [
|
|||||||
FAsset,
|
FAsset,
|
||||||
FErr,
|
FErr,
|
||||||
FHTTP,
|
FHTTP,
|
||||||
|
FMarked,
|
||||||
FReq,
|
FReq,
|
||||||
FResp,
|
FResp,
|
||||||
FTCP,
|
FTCP,
|
||||||
|
Loading…
Reference in New Issue
Block a user