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

Method handle_connect

mitmproxy/proxy/layers/http/__init__.py:773–784  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

771 return True
772
773 def handle_connect(self) -> layer.CommandGenerator[None]:
774 self.client_state = self.state_done
775 yield HttpConnectHook(self.flow)
776 if (yield from self.check_killed(False)):
777 return
778
779 self.context.server.address = (self.flow.request.host, self.flow.request.port)
780
781 if self.mode == HTTPMode.regular:
782 yield from self.handle_connect_regular()
783 else:
784 yield from self.handle_connect_upstream()
785
786 def handle_connect_regular(self):
787 if (

Callers 1

Calls 4

check_killedMethod · 0.95
HttpConnectHookClass · 0.85

Tested by

no test coverage detected