add Rainbows::Sendfile middleware
commitcf122e941e10c2812b7ba5e75c053a28950ddcb6
authorEric Wong <normalperson@yhbt.net>
Thu, 3 Jun 2010 22:23:01 +0000 (3 15:23 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 3 Jun 2010 22:26:01 +0000 (3 15:26 -0700)
treef0c2ba767c7e7af0384a6c4ff470f4fc4903bad5
parent5a0a190253434d3eef5332d979d56f3e16e876bd
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
lib/rainbows/sendfile.rb [new file with mode: 0644]
t/t9001-sendfile-to-path.sh [new file with mode: 0755]
t/t9001.ru [new file with mode: 0644]