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

Function resolve

test/mitmproxy/proxy/layers/test_dns.py:80–86  ·  view source on GitHub ↗
(flow: DNSFlow)

Source from the content-addressed store, hash-verified

78 resp = tdnsresp()
79
80 def resolve(flow: DNSFlow):
81 nonlocal req, resp
82 assert flow.request
83 req.timestamp = flow.request.timestamp
84 assert flow.request == req
85 resp.timestamp = time.time()
86 flow.response = resp
87
88 assert (
89 Playbook(dns.DNSLayer(tctx))

Callers 2

initializeFunction · 0.85
websocketSpec.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…