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.



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