Class: Async::HTTP::Protocol::Response
- Inherits:
-
Protocol::HTTP::Response
- Object
- Protocol::HTTP::Response
- Async::HTTP::Protocol::Response
- Defined in:
- lib/async/http/protocol/response.rb
Overview
This is generated by client protocols.
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
32 33 34 |
# File 'lib/async/http/protocol/response.rb', line 32 def connection @connection end |
Instance Method Details
#hijack? ⇒ Boolean
34 35 36 |
# File 'lib/async/http/protocol/response.rb', line 34 def hijack? false end |
#peer ⇒ Object
38 39 40 41 42 |
# File 'lib/async/http/protocol/response.rb', line 38 def peer if @connection @connection.peer end end |
#remote_address ⇒ Object
44 45 46 |
# File 'lib/async/http/protocol/response.rb', line 44 def remote_address @remote_address ||= peer.remote_address end |
#remote_address=(value) ⇒ Object
48 49 50 |
# File 'lib/async/http/protocol/response.rb', line 48 def remote_address= value @remote_address = value end |