MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / TXT

Method TXT

mitmproxy/dns.py:240–242  ·  view source on GitHub ↗

Create a textual resource record.

(cls, name: str, text: str, *, ttl: int = DEFAULT_TTL)

Source from the content-addressed store, hash-verified

238
239 @classmethod
240 def TXT(cls, name: str, text: str, *, ttl: int = DEFAULT_TTL) -> ResourceRecord:
241 """Create a textual resource record."""
242 return cls(name, types.TXT, classes.IN, ttl, text.encode("utf-8"))
243
244 @classmethod
245 def HTTPS(

Callers 1

test_strMethod · 0.80

Calls 1

encodeMethod · 0.45

Tested by 1

test_strMethod · 0.64