Class: Resolv::DNS::SvcParam::ALPN
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Resolv::DNS::SvcParam
|
|
Instance Chain:
self,
::Resolv::DNS::SvcParam
|
|
Inherits: |
Resolv::DNS::SvcParam
|
Defined in: | lib/resolv.rb |
Overview
“alpn” ::Resolv::DNS::SvcParam
– Additional supported protocols
Constant Summary
-
KeyName =
# File 'lib/resolv.rb', line 1920:alpn
-
KeyNumber =
# File 'lib/resolv.rb', line 19211
::Resolv::DNS::SvcParam
- Inherited
Class Method Summary
-
.new(protocol_ids) ⇒ ALPN
constructor
Initialize “alpn” ScvParam.
- .decode(msg) Internal use only
::Resolv::DNS::SvcParam
- Inherited
.key_name | Get the presentation name of the SvcParamKey. |
.key_number | Get the registered number of the SvcParamKey. |
Instance Attribute Summary
-
#protocol_ids
readonly
Supported protocol IDs.
Instance Method Summary
- #encode(msg) Internal use only
Constructor Details
.new(protocol_ids) ⇒ ALPN
Initialize “alpn” ScvParam.
# File 'lib/resolv.rb', line 1932
def initialize(protocol_ids) @protocol_ids = protocol_ids.map(&:to_str) end
Class Method Details
.decode(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1940
def self.decode(msg) # :nodoc: return self.new(msg.get_string_list) end
Instance Attribute Details
#protocol_ids (readonly)
Supported protocol IDs.
# File 'lib/resolv.rb', line 1927
attr_reader :protocol_ids
Instance Method Details
#encode(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1936
def encode(msg) # :nodoc: msg.put_string_list(@protocol_ids) end