Class: Gem::Resolv::DNS::SvcParam::ALPN
- Inherits:
-
Gem::Resolv::DNS::SvcParam
- Object
- Gem::Resolv::DNS::SvcParam
- Gem::Resolv::DNS::SvcParam::ALPN
- Defined in:
- lib/rubygems/vendor/resolv/lib/resolv.rb
Overview
“alpn” SvcParam – Additional supported protocols
Constant Summary collapse
- KeyName =
:alpn
- KeyNumber =
1
Constants inherited from Gem::Resolv::DNS::SvcParam
Instance Attribute Summary collapse
-
#protocol_ids ⇒ Object
readonly
Supported protocol IDs.
Class Method Summary collapse
-
.decode(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode(msg) ⇒ Object
:nodoc:.
-
#initialize(protocol_ids) ⇒ ALPN
constructor
Initialize “alpn” ScvParam.
Methods inherited from Gem::Resolv::DNS::SvcParam
Constructor Details
permalink #initialize(protocol_ids) ⇒ ALPN
Initialize “alpn” ScvParam.
1935 1936 1937 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1935 def initialize(protocol_ids) @protocol_ids = protocol_ids.map(&:to_str) end |
Instance Attribute Details
permalink #protocol_ids ⇒ Object (readonly)
Supported protocol IDs.
1930 1931 1932 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1930 def protocol_ids @protocol_ids end |
Class Method Details
permalink .decode(msg) ⇒ Object
:nodoc:
1943 1944 1945 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1943 def self.decode(msg) # :nodoc: return self.new(msg.get_string_list) end |
Instance Method Details
permalink #encode(msg) ⇒ Object
:nodoc:
1939 1940 1941 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1939 def encode(msg) # :nodoc: msg.put_string_list(@protocol_ids) end |