Artifact 43e404419760cb56596c203c363cecff5b3fc6427f7f227cbe7acb279ceb3697:
- File src/query.cr — part of check-in [7b363d4985] at 2021-03-06 22:25:49 on branch trunk — Initial response handling (user: js, size: 330) [annotate] [blame] [check-ins using]
require "./dns_class" require "./rr_type" module AsyncDNS class Query getter domain : String getter dns_class : DNSClass getter rr_type : RRType def initialize(domain : String, @dns_class : DNSClass, @rr_type : RRType) domain += '.' unless domain.ends_with?('.') @domain = domain end end end