Class: Async::WebSocket::ConnectRequest::Hijack
- Inherits:
-
Protocol::HTTP::Body::Readable
- Object
- Protocol::HTTP::Body::Readable
- Async::WebSocket::ConnectRequest::Hijack
- Defined in:
- lib/async/websocket/connect_request.rb
Instance Attribute Summary collapse
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
- #call(stream) ⇒ Object
-
#initialize(request) ⇒ Hijack
constructor
A new instance of Hijack.
- #stream? ⇒ Boolean
Constructor Details
#initialize(request) ⇒ Hijack
Returns a new instance of Hijack.
69 70 71 72 |
# File 'lib/async/websocket/connect_request.rb', line 69 def initialize(request) @request = request @stream = nil end |
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
78 79 80 |
# File 'lib/async/websocket/connect_request.rb', line 78 def stream @stream end |
Instance Method Details
#call(stream) ⇒ Object
80 81 82 |
# File 'lib/async/websocket/connect_request.rb', line 80 def call(stream) @stream = stream end |
#stream? ⇒ Boolean
74 75 76 |
# File 'lib/async/websocket/connect_request.rb', line 74 def stream? true end |