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

Method proxy_state_for_service

examples/contrib/mitmproxywrapper.py:30–32  ·  view source on GitHub ↗
(self, service)

Source from the content-addressed store, hash-verified

28 ).decode()
29
30 def proxy_state_for_service(self, service):
31 state = self.run_networksetup_command("-getwebproxy", service).splitlines()
32 return dict([re.findall(r"([^:]+): (.*)", line)[0] for line in state])
33
34 def enable_proxy_for_service(self, service):
35 print(f"Enabling proxy on {service}...")

Callers 1

Calls 1

Tested by

no test coverage detected