MCPcopy
hub / github.com/mitmproxy/mitmproxy / mode

Method mode

mitmproxy/proxy/layers/http/__init__.py:167–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165
166 @cached_property
167 def mode(self) -> HTTPMode:
168 i = self.context.layers.index(self)
169 parent = self.context.layers[i - 1]
170 assert isinstance(parent, HttpLayer)
171 return parent.mode
172
173 def __init__(self, context: Context, stream_id: int) -> None:
174 super().__init__(context)

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected