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 Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
37
38
39
|
# File 'lib/async/http/protocol/request.rb', line 37
def connection
@connection
end
|
Instance Method Details
#hijack? ⇒ Boolean
39
40
41
|
# File 'lib/async/http/protocol/request.rb', line 39
def hijack?
false
end
|
#peer ⇒ Object
47
48
49
50
51
|
# File 'lib/async/http/protocol/request.rb', line 47
def peer
if @connection
@connection.peer
end
end
|
#push? ⇒ Boolean
43
44
45
|
# File 'lib/async/http/protocol/request.rb', line 43
def push?
false
end
|
#remote_address ⇒ Object
53
54
55
|
# File 'lib/async/http/protocol/request.rb', line 53
def remote_address
@remote_address ||= peer.remote_address
end
|
#remote_address=(value) ⇒ Object
57
58
59
|
# File 'lib/async/http/protocol/request.rb', line 57
def remote_address= value
@remote_address = value
end
|