From: "drbrain (Eric Hodel)" Date: 2013-03-23T17:00:19+09:00 Subject: [ruby-core:53665] [ruby-trunk - Feature #8155][Assigned] Improve support for streaming responses in WEBrick Issue #8155 has been reported by drbrain (Eric Hodel). ---------------------------------------- Feature #8155: Improve support for streaming responses in WEBrick https://bugs.ruby-lang.org/issues/8155 Author: drbrain (Eric Hodel) Status: Assigned Priority: Normal Assignee: nahi (Hiroshi Nakamura) 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/