Class: Rack::StreamingProxy::Session
- Inherits:
-
Object
- Object
- Rack::StreamingProxy::Session
- Defined in:
- lib/rack/streaming_proxy/session.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ Session
constructor
A new instance of Session.
-
#start ⇒ Object
Returns a Rack::StreamingProxy::Response.
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
#start ⇒ Object
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 |