MCPcopy
hub / github.com/mitmproxy/mitmproxy / fork

Method fork

mitmproxy/proxy/context.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.layers = []
44
45 def fork(self) -> "Context":
46 ret = Context(self.client, self.options)
47 ret.server = self.server
48 ret.layers = self.layers.copy()
49 return ret
50
51 def __repr__(self):
52 return (

Callers 7

test_contextFunction · 0.95
__init__Method · 0.95
_handle_eventMethod · 0.45
make_streamMethod · 0.45
get_connectionMethod · 0.45
__init__Method · 0.45
_handle_eventMethod · 0.45

Calls 2

ContextClass · 0.85
copyMethod · 0.45

Tested by 1

test_contextFunction · 0.76