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
An HTTP response received from a server via client protocol implementations.
Instance Method Summary
collapse
Instance Method Details
#connection ⇒ Object
16
17
18
|
# File 'lib/async/http/protocol/response.rb', line 16
def connection
nil
end
|
#hijack? ⇒ Boolean
21
22
23
|
# File 'lib/async/http/protocol/response.rb', line 21
def hijack?
false
end
|
#inspect ⇒ Object
36
37
38
|
# File 'lib/async/http/protocol/response.rb', line 36
def inspect
"#<#{self.class}:0x#{self.object_id.to_s(16)} status=#{status}>"
end
|
#peer ⇒ Object
26
27
28
|
# File 'lib/async/http/protocol/response.rb', line 26
def peer
self.connection&.peer
end
|
#remote_address ⇒ Object
31
32
33
|
# File 'lib/async/http/protocol/response.rb', line 31
def remote_address
self.peer&.remote_address
end
|