From 42fbb5d3a6c6488c2015bd81f1a00f1873cfb819 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Dec 2009 02:59:32 -0800 Subject: env["hack.io"] for Fiber*, Revactor, Thread* models This exposes a client IO object directly to the underlying application. --- lib/rainbows/revactor.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/revactor.rb') diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb index b647d48..ff0e429 100644 --- a/lib/rainbows/revactor.rb +++ b/lib/rainbows/revactor.rb @@ -49,6 +49,7 @@ module Rainbows buf << client.read(*rd_args) end + env[Const::CLIENT_IO] = client env[Const::RACK_INPUT] = 0 == hp.content_length ? HttpRequest::NULL_IO : Rainbows::Revactor::TeeInput.new(client, env, hp, buf) -- cgit v1.2.3-24-ge0c7