Create a HTTPS resource record
(
cls, name: str, record: HTTPSRecord, ttl: int = DEFAULT_TTL
)
| 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 |