MCPcopy
hub / github.com/mitmproxy/mitmproxy / HTTPS

Method HTTPS

mitmproxy/dns.py:245–249  ·  view source on GitHub ↗

Create a HTTPS resource record

(
        cls, name: str, record: HTTPSRecord, ttl: int = DEFAULT_TTL
    )

Source from the content-addressed store, hash-verified

243
244 @classmethod
245 def HTTPS(
246 cls, name: str, record: HTTPSRecord, ttl: int = DEFAULT_TTL
247 ) -> ResourceRecord:
248 """Create a HTTPS resource record"""
249 return cls(name, types.HTTPS, classes.IN, ttl, https_records.pack(record))
250
251
252# comments are taken from rfc1035

Callers 1

test_strMethod · 0.80

Calls 1

packMethod · 0.80

Tested by 1

test_strMethod · 0.64