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

Method __init__

mitmproxy/proxy/layers/http/_http1.py:56–58  ·  view source on GitHub ↗
(self, context: Context, conn: Connection)

Source from the content-addressed store, hash-verified

54 ReceiveEndOfMessage: type[RequestEndOfMessage | ResponseEndOfMessage]
55
56 def __init__(self, context: Context, conn: Connection):
57 super().__init__(context, conn)
58 self.buf = ReceiveBuffer()
59
60 @abc.abstractmethod
61 def send(self, event: HttpEvent) -> layer.CommandGenerator[None]:

Callers

nothing calls this directly

Calls 2

ReceiveBufferClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected