MCPcopy
hub / github.com/mitmproxy/mitmproxy / NextLayerHook

Class NextLayerHook

mitmproxy/proxy/layer.py:333–340  ·  view source on GitHub ↗

Network layers are being switched. You may change which layer will be used by setting data.layer. (by default, this is done by mitmproxy.addons.NextLayer)

Source from the content-addressed store, hash-verified

331
332@dataclass
333class NextLayerHook(StartHook):
334 """
335 Network layers are being switched. You may change which layer will be used by setting data.layer.
336
337 (by default, this is done by mitmproxy.addons.NextLayer)
338 """
339
340 data: NextLayer

Callers 10

test_upstream_httpsFunction · 0.90
test_reverse_proxyFunction · 0.90
test_reverse_dnsFunction · 0.90
test_quicFunction · 0.90
test_udpFunction · 0.90
test_transparent_tcpFunction · 0.90
test_socks5_successFunction · 0.90
test_socks5_auth_successFunction · 0.90
_askMethod · 0.85

Calls

no outgoing calls

Tested by 9

test_upstream_httpsFunction · 0.72
test_reverse_proxyFunction · 0.72
test_reverse_dnsFunction · 0.72
test_quicFunction · 0.72
test_udpFunction · 0.72
test_transparent_tcpFunction · 0.72
test_socks5_successFunction · 0.72
test_socks5_auth_successFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…