MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / _handle_event

Method _handle_event

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

Source from the content-addressed store, hash-verified

24class HttpProxy(layer.Layer):
25 @expect(events.Start)
26 def _handle_event(self, event: events.Event) -> layer.CommandGenerator[None]:
27 child_layer = layer.NextLayer(self.context)
28 self._handle_event = child_layer.handle_event
29 yield from child_layer.handle_event(event)
30
31
32class HttpUpstreamProxy(layer.Layer):

Callers

nothing calls this directly

Calls 1

handle_eventMethod · 0.95

Tested by

no test coverage detected