MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/proxy/layers/http/__init__.py:173–179  ·  view source on GitHub ↗
(self, context: Context, stream_id: int)

Source from the content-addressed store, hash-verified

171 return parent.mode
172
173 def __init__(self, context: Context, stream_id: int) -> None:
174 super().__init__(context)
175 self.request_body_buf = ReceiveBuffer()
176 self.response_body_buf = ReceiveBuffer()
177 self.client_state = self.state_uninitialized
178 self.server_state = self.state_uninitialized
179 self.stream_id = stream_id
180
181 def __repr__(self):
182 if self._handle_event == self.passthrough:

Callers

nothing calls this directly

Calls 2

ReceiveBufferClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected