Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mitmproxy/mitmproxy
/ _nearest
Method
_nearest
mitmproxy/addons/view.py:701–702 ·
view source on GitHub ↗
(self, f, v)
Source
from the content-addressed store, hash-verified
699
self.flow = self.view[idx]
700
701
def
_nearest(self, f, v):
702
return
min(v._bisect(f), len(v) - 1)
703
704
def
_sig_view_remove(self, flow, index):
705
if
len(self.view) == 0:
Callers
1
_sig_view_refresh
Method · 0.95
Calls
1
_bisect
Method · 0.80
Tested by
no test coverage detected