MCPcopy
hub / github.com/mitmproxy/mitmproxy / index

Method index

mitmproxy/addons/view.py:235–238  ·  view source on GitHub ↗
(
        self, f: mitmproxy.flow.Flow, start: int = 0, stop: int | None = None
    )

Source from the content-addressed store, hash-verified

233 return self._rev(v - 1) + 1
234
235 def index(
236 self, f: mitmproxy.flow.Flow, start: int = 0, stop: int | None = None
237 ) -> int:
238 return self._rev(self._view.index(f, start, stop))
239
240 def __contains__(self, f: Any) -> bool:
241 return self._view.__contains__(f)

Callers 13

playbook_evalMethod · 0.45
mainFunction · 0.45
layout_cycleMethod · 0.45
keypressMethod · 0.45
stack_posMethod · 0.45
modeMethod · 0.45
prettifyMethod · 0.45
decode_multipartFunction · 0.45
removeMethod · 0.45
updateMethod · 0.45

Calls 1

_revMethod · 0.95

Tested by

no test coverage detected