From: "drbrain (Eric Hodel)" Date: 2013-08-07T09:49:04+09:00 Subject: [ruby-core:56420] [ruby-trunk - Feature #8155] Improve support for streaming responses in WEBrick 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