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/