Class: Rack::StreamingProxy::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/streaming_proxy/session.rb

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ Session

Returns a new instance of Session.



8
9
10
# File 'lib/rack/streaming_proxy/session.rb', line 8

def initialize(request)
  @request = request
end

Instance Method Details

#startObject

Returns a Rack::StreamingProxy::Response



13
14
15
16
17
# File 'lib/rack/streaming_proxy/session.rb', line 13

def start
  @piper = Servolux::Piper.new 'r', timeout: 30
  @piper.child  { child }
  @piper.parent { parent }
end