MCPcopy
hub / github.com/mitmproxy/mitmproxy / __getitem__

Method __getitem__

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

Source from the content-addressed store, hash-verified

735 return len(self._values)
736
737 def __getitem__(self, f: mitmproxy.flow.Flow) -> dict:
738 if f.id not in self.view._store:
739 raise KeyError
740 return self._values.setdefault(f.id, {})
741
742 def _sig_store_remove(self, flow):
743 if flow.id in self._values:

Callers

nothing calls this directly

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected