Class: Tep::Proxy::ProxyStreamer
Overview
Thin Streamer shim. Holds the held-open upstream fd + state and delegates the actual pump to @proxy.run_stream. The work lives on Tep::Proxy (not here) so the per-chunk / end hooks dispatch through ‘self` – a polymorphic-self call inside a base-Proxy method reaches subclass overrides, whereas a call through this object’s @proxy slot (statically base-typed) would only ever hit the base hooks. See run_stream’s comment + [[spinel-widening-dispatch]].
Instance Attribute Summary collapse
-
#fd ⇒ Object
Returns the value of attribute fd.
-
#is_chunked ⇒ Object
Returns the value of attribute is_chunked.
-
#is_sse ⇒ Object
Returns the value of attribute is_sse.
-
#leftover ⇒ Object
Returns the value of attribute leftover.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#req ⇒ Object
Returns the value of attribute req.
Instance Method Summary collapse
-
#initialize ⇒ ProxyStreamer
constructor
A new instance of ProxyStreamer.
- #pump(out) ⇒ Object
Constructor Details
Instance Attribute Details
#fd ⇒ Object
Returns the value of attribute fd.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def fd @fd end |
#is_chunked ⇒ Object
Returns the value of attribute is_chunked.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def is_chunked @is_chunked end |
#is_sse ⇒ Object
Returns the value of attribute is_sse.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def is_sse @is_sse end |
#leftover ⇒ Object
Returns the value of attribute leftover.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def leftover @leftover end |
#proxy ⇒ Object
Returns the value of attribute proxy.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def proxy @proxy end |
#req ⇒ Object
Returns the value of attribute req.
785 786 787 |
# File 'lib/tep/proxy.rb', line 785 def req @req end |
Instance Method Details
#pump(out) ⇒ Object
796 797 798 |
# File 'lib/tep/proxy.rb', line 796 def pump(out) @proxy.run_stream(out, @fd, @leftover, @is_chunked, @is_sse, @req) end |