Class: Async::WebSocket::ConnectRequest::Hijack

Inherits:
HTTP::Body::Readable
  • Object
show all
Defined in:
lib/async/websocket/connect_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#streamObject (readonly)

Returns the value of attribute stream


79
80
81
# File 'lib/async/websocket/connect_request.rb', line 79

def stream
  @stream
end

Instance Method Details

#call(stream) ⇒ Object


81
82
83
# File 'lib/async/websocket/connect_request.rb', line 81

def call(stream)
	@stream = stream
end

#stream?Boolean

Returns:

  • (Boolean)

75
76
77
# File 'lib/async/websocket/connect_request.rb', line 75

def stream?
	true
end