MCPcopy
hub / github.com/mitmproxy/mitmproxy / make_stream

Method make_stream

mitmproxy/proxy/layers/http/__init__.py:1062–1065  ·  view source on GitHub ↗
(self, stream_id: int)

Source from the content-addressed store, hash-verified

1060 raise AssertionError(f"Not a command: {event}")
1061
1062 def make_stream(self, stream_id: int) -> layer.CommandGenerator[None]:
1063 ctx = self.context.fork()
1064 self.streams[stream_id] = HttpStream(ctx, stream_id)
1065 yield from self.event_to_child(self.streams[stream_id], events.Start())
1066
1067 def get_connection(
1068 self, event: GetHttpConnection, *, reuse: bool = True

Callers 1

event_to_childMethod · 0.95

Calls 3

event_to_childMethod · 0.95
HttpStreamClass · 0.85
forkMethod · 0.45

Tested by

no test coverage detected