Class: Async::HTTP::Protocol::HTTP11::Request
- Defined in:
- lib/async/http/protocol/http11.rb
Instance Attribute Summary collapse
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Attributes inherited from Request
#authority, #body, #headers, #method, #path, #version
Instance Method Summary collapse
- #hijack ⇒ Object
- #hijack? ⇒ Boolean
-
#initialize(protocol) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Request
[], #connect?, #head?, #idempotent?, #to_s
Methods included from Body::Buffered::Reader
Constructor Details
#initialize(protocol) ⇒ Request
Returns a new instance of Request.
97 98 99 100 101 |
# File 'lib/async/http/protocol/http11.rb', line 97 def initialize(protocol) super(*protocol.read_request) @protocol = protocol end |
Instance Attribute Details
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
103 104 105 |
# File 'lib/async/http/protocol/http11.rb', line 103 def protocol @protocol end |
Instance Method Details
#hijack ⇒ Object
109 110 111 |
# File 'lib/async/http/protocol/http11.rb', line 109 def hijack @protocol.hijack end |
#hijack? ⇒ Boolean
105 106 107 |
# File 'lib/async/http/protocol/http11.rb', line 105 def hijack? true end |