MCPcopy
hub / github.com/mitmproxy/mitmproxy / copy

Method copy

mitmproxy/dns.py:558–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 return inst
557
558 def copy(self) -> DNSMessage:
559 # we keep the copy semantics but change the ID generation
560 state = self.get_state()
561 state["id"] = random.randint(0, 65535)
562 return DNSMessage.from_state(state)
563
564
565class DNSFlow(flow.Flow):

Callers

nothing calls this directly

Calls 2

get_stateMethod · 0.45
from_stateMethod · 0.45

Tested by

no test coverage detected