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

Method __init__

mitmproxy/proxy/layers/http/_http1.py:231–233  ·  view source on GitHub ↗
(self, context: Context)

Source from the content-addressed store, hash-verified

229 stream_id: int
230
231 def __init__(self, context: Context):
232 super().__init__(context, context.client)
233 self.stream_id = 1
234
235 def send(self, event: HttpEvent) -> layer.CommandGenerator[None]:
236 assert event.stream_id == self.stream_id

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected