Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_context
Function · 0.95
__init__
Method · 0.95
_handle_event
Method · 0.45
make_stream
Method · 0.45
get_connection
Method · 0.45
__init__
Method · 0.45
_handle_event
Method · 0.45
Calls
2
Context
Class · 0.85
copy
Method · 0.45
Tested by
1
test_context
Function · 0.76