MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / should_intercept

Method should_intercept

mitmproxy/addons/intercept.py:30–36  ·  view source on GitHub ↗
(self, f: flow.Flow)

Source from the content-addressed store, hash-verified

28 ctx.options.intercept_active = False
29
30 def should_intercept(self, f: flow.Flow) -> bool:
31 return bool(
32 ctx.options.intercept_active
33 and self.filt
34 and self.filt(f)
35 and not f.is_replay
36 )
37
38 def process_flow(self, f: flow.Flow) -> None:
39 if self.should_intercept(f):

Callers 1

process_flowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected