Issue #8155 has been updated by drbrain (Eric Hodel).

Assignee changed from nahi (Hiroshi Nakamura) to drbrain (Eric Hodel)

assigning to me per: http://twitter.com/nahi/status/364910788529500160
----------------------------------------
Feature #8155: Improve support for streaming responses in WEBrick
https://bugs.ruby-lang.org/issues/8155#change-40950

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: lib
Target version: current: 2.1.0


Currently WEBrick only understands a body that is a String or an IO.  This makes it difficult to stream a response body.  Instead of providing a body that duck-types to IO you must use IO.pipe which can be clumsy.

The attached patch checks if the body responds to #readpartial (#read is assumed) instead of if it is an instance of class IO.


-- 
http://bugs.ruby-lang.org/
_______________________________________________
ruby-core mailing list
ruby-core / ruby-lang.org
http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-core