Class: Async::WebSocket::ConnectRequest::Hijack
- Inherits:
-
HTTP::Body::Readable
- Object
- 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.
Constructor Details
#initialize(request) ⇒ Hijack
Returns a new instance of Hijack.
70 71 72 73 |
# File 'lib/async/websocket/connect_request.rb', line 70 def initialize(request) @request = request @stream = nil end |
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
75 76 77 |
# File 'lib/async/websocket/connect_request.rb', line 75 def stream @stream end |
Instance Method Details
#call(stream) ⇒ Object
77 78 79 |
# File 'lib/async/websocket/connect_request.rb', line 77 def call(stream) @stream = stream end |