Class: Protocol::HTTP::Executor::Transport::Endpoint
- Inherits:
-
Object
- Object
- Protocol::HTTP::Executor::Transport::Endpoint
- Defined in:
- lib/protocol/http/executor/transport.rb
Overview
One endpoint of an execution transport.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#control ⇒ Object
readonly
Returns the value of attribute control.
Instance Method Summary collapse
-
#close ⇒ Object
Close all channels.
-
#initialize(control, body) ⇒ Endpoint
constructor
Initialize an endpoint from its connected IO objects.
- #The bidirectional body channel.=(bidirectionalbodychannel. = (value)) ⇒ Object
- #The bidirectional control channel.=(bidirectionalcontrolchannel. = (value)) ⇒ Object
Constructor Details
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
28 29 30 |
# File 'lib/protocol/http/executor/transport.rb', line 28 def body @body end |
#control ⇒ Object (readonly)
Returns the value of attribute control.
25 26 27 |
# File 'lib/protocol/http/executor/transport.rb', line 25 def control @control end |
Instance Method Details
#close ⇒ Object
Close all channels.
31 32 33 34 |
# File 'lib/protocol/http/executor/transport.rb', line 31 def close @control.close @body.close end |
#The bidirectional body channel.=(bidirectionalbodychannel. = (value)) ⇒ Object
28 |
# File 'lib/protocol/http/executor/transport.rb', line 28 attr :body |
#The bidirectional control channel.=(bidirectionalcontrolchannel. = (value)) ⇒ Object
25 |
# File 'lib/protocol/http/executor/transport.rb', line 25 attr :control |