From cf122e941e10c2812b7ba5e75c053a28950ddcb6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jun 2010 15:23:01 -0700 Subject: add Rainbows::Sendfile middleware This lets most concurrency models understand and process X-Sendfile efficiently with IO.copy_stream under Ruby 1.9. EventMachine can take advantage of this middleware under both Ruby 1.8 and Ruby 1.9. --- lib/rainbows.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index dac68c2..e186549 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -32,6 +32,7 @@ module Rainbows require 'rainbows/http_response' require 'rainbows/base' require 'rainbows/tee_input' + autoload :Sendfile, 'rainbows/sendfile' autoload :AppPool, 'rainbows/app_pool' autoload :DevFdResponse, 'rainbows/dev_fd_response' autoload :MaxBody, 'rainbows/max_body' -- cgit v1.2.3-24-ge0c7