chunked_reader: simpler interface
commit41f6f65a6cb7152b5181704373d7da62704a62e8
authorEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 01:01:41 +0000 (29 18:01 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 01:17:36 +0000 (29 18:17 -0700)
tree7ca9dd0d8618e11e42ca591b96d8b4f1d3f7942a
parent4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd
chunked_reader: simpler interface

This won't be heavily used enough to make preallocation worth
the effort.  While we're at it, don't enforce policy by forcing
the readpartial buffer to be Encoding::BINARY (even though it
/should/ be :), it's up to the user of the interface to decide.
lib/unicorn/chunked_reader.rb
lib/unicorn/http_request.rb
test/unit/test_chunked_reader.rb