Class: Async::HTTP::Protocol::Configured
- Inherits:
-
Object
- Object
- Async::HTTP::Protocol::Configured
- Defined in:
- lib/async/http/protocol/configurable.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
- #The underlying protocol.(underlyingprotocol.) ⇒ Object readonly
Instance Method Summary collapse
- #client(peer, **options) ⇒ Object
-
#initialize(protocol, **options) ⇒ Configured
constructor
A new instance of Configured.
- #names ⇒ Object
- #server(peer, **options) ⇒ Object
- #The options to pass to the protocol.=(optionstopasstotheprotocol. = (value)) ⇒ Object
Constructor Details
#initialize(protocol, **options) ⇒ Configured
Returns a new instance of Configured.
10 11 12 13 |
# File 'lib/async/http/protocol/configurable.rb', line 10 def initialize(protocol, **) @protocol = protocol @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
19 20 21 |
# File 'lib/async/http/protocol/configurable.rb', line 19 def @options end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
16 17 18 |
# File 'lib/async/http/protocol/configurable.rb', line 16 def protocol @protocol end |
#The underlying protocol.(underlyingprotocol.) ⇒ Object (readonly)
16 |
# File 'lib/async/http/protocol/configurable.rb', line 16 attr :protocol |
Instance Method Details
#client(peer, **options) ⇒ Object
[View source]
21 22 23 24 |
# File 'lib/async/http/protocol/configurable.rb', line 21 def client(peer, **) = @options.merge() @protocol.client(peer, **) end |
#names ⇒ Object
[View source]
31 32 33 |
# File 'lib/async/http/protocol/configurable.rb', line 31 def names @protocol.names end |
#server(peer, **options) ⇒ Object
[View source]
26 27 28 29 |
# File 'lib/async/http/protocol/configurable.rb', line 26 def server(peer, **) = @options.merge() @protocol.server(peer, **) end |
#The options to pass to the protocol.=(optionstopasstotheprotocol. = (value)) ⇒ Object
[View source]
19 |
# File 'lib/async/http/protocol/configurable.rb', line 19 attr :options |