Class: Async::HTTP::Protocol::Request
- Inherits:
-
Protocol::HTTP::Request
- Object
- Protocol::HTTP::Request
- Async::HTTP::Protocol::Request
show all
- Defined in:
- lib/async/http/protocol/request.rb
Overview
This is generated by server protocols.
Instance Method Summary
collapse
Instance Method Details
#connection ⇒ Object
20
21
22
|
# File 'lib/async/http/protocol/request.rb', line 20
def connection
nil
end
|
#hijack? ⇒ Boolean
24
25
26
|
# File 'lib/async/http/protocol/request.rb', line 24
def hijack?
false
end
|
#peer ⇒ Object
28
29
30
31
32
|
# File 'lib/async/http/protocol/request.rb', line 28
def peer
if connection = self.connection
connection.peer
end
end
|
#remote_address ⇒ Object
34
35
36
|
# File 'lib/async/http/protocol/request.rb', line 34
def remote_address
@remote_address ||= peer.remote_address
end
|
#remote_address=(value) ⇒ Object
38
39
40
|
# File 'lib/async/http/protocol/request.rb', line 38
def remote_address= value
@remote_address = value
end
|