diff options
Diffstat (limited to 'lib/rainbows/rack_input.rb')
-rw-r--r-- | lib/rainbows/rack_input.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/rainbows/rack_input.rb b/lib/rainbows/rack_input.rb deleted file mode 100644 index bc68ed1..0000000 --- a/lib/rainbows/rack_input.rb +++ /dev/null @@ -1,17 +0,0 @@ -# -*- encoding: binary -*- -# :enddoc: -# only used by synchronous interfaces -module Rainbows::RackInput - NULL_IO = Unicorn::HttpRequest::NULL_IO - RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT - CLIENT_IO = Rainbows::Const::CLIENT_IO - - def self.setup - const_set(:IC, Unicorn::HttpRequest.input_class) - end - - def set_input(env, hp) - env[RACK_INPUT] = 0 == hp.content_length ? NULL_IO : IC.new(self, hp) - env[CLIENT_IO] = self - end -end |