enable Range: responses for static files for most models
commit416d3a0f868571319a2b29b0034d2dba68e4d5b3
authorEric Wong <normalperson@yhbt.net>
Thu, 22 Jul 2010 05:42:16 +0000 (22 05:42 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 22 Jul 2010 09:09:37 +0000 (22 09:09 +0000)
tree081bdbdcce23063667c707212ceda45bbc322675
parent015daa81f26afc59d1da857b8bbedfb80eb532b1
enable Range: responses for static files for most models

The FileStreamer class of EventMachine (and by extension
NeverBlock) unfortunately doesn't handle this.  It's possible
to do with Revactor (since it uses Rev under the covers),
but we'll support what we can easily for now.
16 files changed:
lib/rainbows.rb
lib/rainbows/base.rb
lib/rainbows/const.rb
lib/rainbows/error.rb
lib/rainbows/fiber/body.rb
lib/rainbows/fiber/rev.rb
lib/rainbows/response.rb
lib/rainbows/response/body.rb
lib/rainbows/response/range.rb [new file with mode: 0644]
lib/rainbows/rev/client.rb
lib/rainbows/rev/sendfile.rb
lib/rainbows/stream_file.rb
lib/rainbows/writer_thread_pool.rb
lib/rainbows/writer_thread_spawn.rb
t/t0022-copy_stream-byte-range.sh [new file with mode: 0755]
t/t0023-sendfile-byte-range.sh [new file with mode: 0755]