rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 956c68fbce5eee7d8294dccfce507679406d571e 746 bytes (raw)
$ git show v0.95.1:lib/rainbows/tee_input.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
# -*- encoding: binary -*-
# :enddoc:
module Rainbows

  # acts like tee(1) on an input input to provide a input-like stream
  # while providing rewindable semantics through a File/StringIO
  # backing store.  On the first pass, the input is only read on demand
  # so your Rack application can use input notification (upload progress
  # and like).  This should fully conform to the Rack::InputWrapper
  # specification on the public API.  This class is intended to be a
  # strict interpretation of Rack::InputWrapper functionality and will
  # not support any deviations from it.
  class TeeInput < Unicorn::TeeInput

    # empty class, this is to avoid unecessarily modifying Unicorn::TeeInput
    # when MaxBody::Limit is included
  end
end

git clone https://yhbt.net/rainbows.git