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

Method stack_pos

mitmproxy/proxy/layer.py:117–124  ·  view source on GitHub ↗

repr() for this layer and all its parent layers, only useful for debugging.

(self)

Source from the content-addressed store, hash-verified

115
116 @property
117 def stack_pos(self) -> str:
118 """repr() for this layer and all its parent layers, only useful for debugging."""
119 try:
120 idx = self.context.layers.index(self)
121 except ValueError:
122 return repr(self)
123 else:
124 return " >> ".join(repr(x) for x in self.context.layers[: idx + 1])
125
126 @abstractmethod
127 def _handle_event(self, event: events.Event) -> CommandGenerator[None]:

Callers

nothing calls this directly

Calls 2

indexMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected