about summary refs log tree commit homepage
path: root/lib/rainbows/tee_input.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-16 16:16:42 -0800
committerEric Wong <normalperson@yhbt.net>2010-11-16 16:21:33 -0800
commit31cf77e7aa2f2e6065e7ace44e55c3f042b51f1b (patch)
tree7dfd53c499cbf7a52165d3480d56d8576a743781 /lib/rainbows/tee_input.rb
parent42747db815ad668b20849afb2a9dcdd1319713ae (diff)
downloadrainbows-31cf77e7aa2f2e6065e7ace44e55c3f042b51f1b.tar.gz
This allows the client_max_body_size implementation to not rely
on Unicorn::TeeInput internals, allowing it to be used with
Unicorn::StreamInput (or any other (nearly)
Rack::Lint-compatible input object).
Diffstat (limited to 'lib/rainbows/tee_input.rb')
-rw-r--r--lib/rainbows/tee_input.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/rainbows/tee_input.rb b/lib/rainbows/tee_input.rb
deleted file mode 100644
index 956c68f..0000000
--- a/lib/rainbows/tee_input.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- 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