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

Method set_order

mitmproxy/addons/view.py:317–327  ·  view source on GitHub ↗

Sets the current view order.

(self, order_key: str)

Source from the content-addressed store, hash-verified

315
316 @command.command("view.order.set")
317 def set_order(self, order_key: str) -> None:
318 """
319 Sets the current view order.
320 """
321 if order_key not in self.orders:
322 raise exceptions.CommandError("Unknown flow order: %s" % order_key)
323 key = self.orders[order_key]
324 self.order_key = key
325 newview = sortedcontainers.SortedListWithKey(key=key)
326 newview.update(self._view)
327 self._view = newview
328
329 @command.command("view.order")
330 def get_order(self) -> str:

Callers 2

test_orderFunction · 0.95
configureMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by 1

test_orderFunction · 0.76