MCPcopy
hub / github.com/mitmproxy/mitmproxy / https_ech

Method https_ech

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

Source from the content-addressed store, hash-verified

133
134 @property
135 def https_ech(self) -> str | None:
136 record = https_records.unpack(self.data)
137 ech_bytes = record.params.get(SVCParamKeys.ECH.value, None)
138 if ech_bytes is not None:
139 return base64.b64encode(ech_bytes).decode("utf-8")
140 else:
141 return None
142
143 @https_ech.setter
144 def https_ech(self, ech: str | None) -> None:

Callers

nothing calls this directly

Calls 6

unpackMethod · 0.80
packMethod · 0.80
getMethod · 0.45
decodeMethod · 0.45
popMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected