new_file(..., :largefile => :stream) avoids chunking
commit50f9287610725257bf64781a2008398ff6ceeacb
authorEric Wong <normalperson@yhbt.net>
Thu, 8 Dec 2011 23:53:09 +0000 (8 15:53 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 8 Dec 2011 23:53:09 +0000 (8 15:53 -0800)
tree049bdc3151d4d87ec78b2e292b999607374e963e
parenta867de1e6bdf50bb7cb4316a7ecf3a9a38c9029b
new_file(..., :largefile => :stream) avoids chunking

This allows us to stream files with a known Content-Length
into MogileFS.  This can be useful for streaming an HTTP
download into MogileFS without:

* saving it to the filesystem
* relying on chunked encoding support on the server
lib/mogilefs/http_stream.rb
lib/mogilefs/mogilefs.rb
test/test_mogstored_rack.rb