Class: Resolv::DNS::Resource::IN::HTTPS
- Inherits:
-
SVCB
- Object
- SVCB
- Resolv::DNS::Resource::IN::HTTPS
- Defined in:
- lib/svcb_rr_patch/https.rb
Overview
The HTTPS DNS Resource Record
Constant Summary collapse
- TypeValue =
rubocop:disable Naming/ConstantName
65- ClassValue =
IN::ClassValue
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
13 14 15 16 17 18 19 20 21 |
# File 'lib/svcb_rr_patch/https.rb', line 13 def decode_rdata(msg) svc_priority = msg.get_bytes(2).unpack1('n') target_name = msg.get_string return new(svc_priority, target_name, {}) if svc_priority.zero? # the SvcParams, consuming the remainder of the record svc_params = ::SvcbRrPatch::SvcParams::Hash.decode(msg.get_bytes) new(svc_priority, target_name, svc_params) end |