MCPcopy
hub / github.com/mitmproxy/mitmproxy / shutdown

Method shutdown

mitmproxy/master.py:96–101  ·  view source on GitHub ↗

Shut down the proxy. This method is thread-safe.

(self)

Source from the content-addressed store, hash-verified

94 await self.done()
95
96 def shutdown(self):
97 """
98 Shut down the proxy. This method is thread-safe.
99 """
100 # We may add an exception argument here.
101 self.event_loop.call_soon_threadsafe(self.should_exit.set)
102
103 async def running(self) -> None:
104 await self.addons.trigger_event(hooks.RunningHook())

Callers 3

test_exception_handlerFunction · 0.95
make_requestFunction · 0.45
requestFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_exception_handlerFunction · 0.76
make_requestFunction · 0.36