MCPcopy
hub / github.com/mitmproxy/mitmproxy / set_filter

Method set_filter

mitmproxy/addons/view.py:354–356  ·  view source on GitHub ↗
(self, flt: flowfilter.TFilter | None)

Source from the content-addressed store, hash-verified

352 self.set_filter(filt)
353
354 def set_filter(self, flt: flowfilter.TFilter | None):
355 self.filter = flt or flowfilter.match_all
356 self._refilter()
357
358 # View Updates
359 @command.command("view.clear")

Callers 7

test_filterFunction · 0.95
test_resolveFunction · 0.95
test_updateFunction · 0.95
test_signalsFunction · 0.95
test_focusFunction · 0.95
set_filter_cmdMethod · 0.95
configureMethod · 0.95

Calls 1

_refilterMethod · 0.95

Tested by 5

test_filterFunction · 0.76
test_resolveFunction · 0.76
test_updateFunction · 0.76
test_signalsFunction · 0.76
test_focusFunction · 0.76