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

Method __init__

mitmproxy/proxy/layers/http/__init__.py:939–946  ·  view source on GitHub ↗
(self, context: Context, mode: HTTPMode)

Source from the content-addressed store, hash-verified

937 ]
938
939 def __init__(self, context: Context, mode: HTTPMode):
940 super().__init__(context)
941 self.mode = mode
942
943 self.waiting_for_establishment = collections.defaultdict(list)
944 self.streams = {}
945 self.command_sources = {}
946 self.connections = {}
947
948 def __repr__(self):
949 return f"HttpLayer({self.mode.name}, conns: {len(self.connections)})"

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected