diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-03 15:23:01 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-03 15:26:01 -0700 |
commit | cf122e941e10c2812b7ba5e75c053a28950ddcb6 (patch) | |
tree | f0c2ba767c7e7af0384a6c4ff470f4fc4903bad5 /lib/rainbows.rb | |
parent | 5a0a190253434d3eef5332d979d56f3e16e876bd (diff) | |
download | rainbows-cf122e941e10c2812b7ba5e75c053a28950ddcb6.tar.gz |
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.
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r-- | lib/rainbows.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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' |