about summary refs log tree commit homepage
path: root/lib/rainbows/rack_input.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-20 02:28:12 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-20 02:28:12 -0800
commit72cbecfe01b8c4b2c7bb7e362401805374036dc2 (patch)
tree54997f0023c98a8a4fc0296079cf990ca8d5ec0d /lib/rainbows/rack_input.rb
parented33b9c0d060806b41e952a50e0ab65a0f5fe21a (diff)
downloadrainbows-72cbecfe01b8c4b2c7bb7e362401805374036dc2.tar.gz
It turns out to be less-used than previous anticipated,
so there's no point in having yet another module.
Diffstat (limited to 'lib/rainbows/rack_input.rb')
-rw-r--r--lib/rainbows/rack_input.rb17
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