MCPcopy
hub / github.com/mitmproxy/mitmproxy / load

Method load

mitmproxy/addons/view.py:189–205  ·  view source on GitHub ↗
(self, loader)

Source from the content-addressed store, hash-verified

187 self.settings = Settings(self)
188
189 def load(self, loader):
190 loader.add_option(
191 "view_filter", Optional[str], None, "Limit the view to matching flows."
192 )
193 loader.add_option(
194 "view_order",
195 str,
196 "time",
197 "Flow sort order.",
198 choices=list(map(lambda c: c[1], orders)),
199 )
200 loader.add_option(
201 "view_order_reversed", bool, False, "Reverse the sorting order."
202 )
203 loader.add_option(
204 "console_focus_follow", bool, False, "Focus follows new flows."
205 )
206
207 def store_count(self):
208 return len(self._store)

Callers 4

parseFunction · 0.45
streamMethod · 0.45
yaml_loadsFunction · 0.45
elasticlunr.min.jsFile · 0.45

Calls 2

mapFunction · 0.50
add_optionMethod · 0.45

Tested by

no test coverage detected