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 Method Summary
collapse
Instance Method Details
#connection ⇒ Object
15
16
17
|
# File 'lib/async/http/protocol/response.rb', line 15
def connection
nil
end
|
#hijack? ⇒ Boolean
19
20
21
|
# File 'lib/async/http/protocol/response.rb', line 19
def hijack?
false
end
|
#inspect ⇒ Object
37
38
39
|
# File 'lib/async/http/protocol/response.rb', line 37
def inspect
"#<#{self.class}:0x#{self.object_id.to_s(16)} status=#{status}>"
end
|
#peer ⇒ Object
23
24
25
26
27
|
# File 'lib/async/http/protocol/response.rb', line 23
def peer
if connection = self.connection
connection.peer
end
end
|
#remote_address ⇒ Object
29
30
31
|
# File 'lib/async/http/protocol/response.rb', line 29
def remote_address
@remote_address ||= peer.remote_address
end
|
#remote_address=(value) ⇒ Object
33
34
35
|
# File 'lib/async/http/protocol/response.rb', line 33
def remote_address= value
@remote_address = value
end
|