Class: Async::HTTP::Protocol::Request
- Defined in:
- lib/async/http/protocol/request.rb
Overview
This is generated by server protocols.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Attributes inherited from Request
#authority, #body, #headers, #method, #path, #scheme, #version
Instance Method Summary collapse
- #hijack? ⇒ Boolean
- #peer ⇒ Object
- #push? ⇒ Boolean
- #remote_address ⇒ Object
- #remote_address=(value) ⇒ Object
Methods inherited from Request
[], #connect?, #head?, #idempotent?, #initialize, #to_s
Methods included from Body::Reader
#body?, #close, #each, #finish, #read, #save
Constructor Details
This class inherits a constructor from Async::HTTP::Request
Instance Attribute Details
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
35 36 37 |
# File 'lib/async/http/protocol/request.rb', line 35 def protocol @protocol end |
Instance Method Details
#hijack? ⇒ Boolean
37 38 39 |
# File 'lib/async/http/protocol/request.rb', line 37 def hijack? false end |
#peer ⇒ Object
45 46 47 48 49 |
# File 'lib/async/http/protocol/request.rb', line 45 def peer if @protocol @protocol.peer end end |
#push? ⇒ Boolean
41 42 43 |
# File 'lib/async/http/protocol/request.rb', line 41 def push? false 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 |