fix string slicing under 1.9 after short writes
[rainbows.git] / lib / rainbows / tee_input.rb
blobbe46cb3f5ba1c0bddc617d6a2f56ed5df2401ffa
1 # -*- encoding: binary -*-
2 module Rainbows
4   # acts like tee(1) on an input input to provide a input-like stream
5   # while providing rewindable semantics through a File/StringIO
6   # backing store.  On the first pass, the input is only read on demand
7   # so your Rack application can use input notification (upload progress
8   # and like).  This should fully conform to the Rack::InputWrapper
9   # specification on the public API.  This class is intended to be a
10   # strict interpretation of Rack::InputWrapper functionality and will
11   # not support any deviations from it.
12   class TeeInput < Unicorn::TeeInput
14     # empty class, this is to avoid unecessarily modifying Unicorn::TeeInput
15     # when MaxBody::Limit is included
16   end
17 end