From 72cbecfe01b8c4b2c7bb7e362401805374036dc2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Jan 2011 02:28:12 -0800 Subject: merge rack_input into process_client It turns out to be less-used than previous anticipated, so there's no point in having yet another module. --- lib/rainbows/rack_input.rb | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 lib/rainbows/rack_input.rb (limited to 'lib/rainbows/rack_input.rb') 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 -- cgit v1.2.3-24-ge0c7