Actions
Feature #8155
closedImprove support for streaming responses in WEBrick
Feature #8155:
Improve support for streaming responses in WEBrick
Description
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.
Files
Actions