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

Method _handle_event

mitmproxy/proxy/layers/modes.py:34–37  ·  view source on GitHub ↗
(self, event: events.Event)

Source from the content-addressed store, hash-verified

32class HttpUpstreamProxy(layer.Layer):
33 @expect(events.Start)
34 def _handle_event(self, event: events.Event) -> layer.CommandGenerator[None]:
35 child_layer = layer.NextLayer(self.context)
36 self._handle_event = child_layer.handle_event
37 yield from child_layer.handle_event(event)
38
39
40class DestinationKnown(layer.Layer, metaclass=ABCMeta):

Callers

nothing calls this directly

Calls 1

handle_eventMethod · 0.95

Tested by

no test coverage detected