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
37
38
39
|
# File 'lib/async/http/protocol/request.rb', line 37
def connection
nil
end
|
#hijack? ⇒ Boolean
41
42
43
|
# File 'lib/async/http/protocol/request.rb', line 41
def hijack?
false
end
|
#peer ⇒ Object
45
46
47
48
49
|
# File 'lib/async/http/protocol/request.rb', line 45
def peer
if connection = self.connection
connection.peer
end
end
|
#remote_address ⇒ Object
51
52
53
|
# File 'lib/async/http/protocol/request.rb', line 51
def remote_address
@remote_address ||= peer.remote_address
end
|
#remote_address=(value) ⇒ Object
55
56
57
|
# File 'lib/async/http/protocol/request.rb', line 55
def remote_address= value
@remote_address = value
end
|