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