class Rack::Response
def write(chunk)
NOTE: Do not mix #write and direct #body access!
Converts the response into a buffered response if it wasn't already.
Append a chunk to the response body.
def write(chunk) buffered_body! @writer.call(chunk.to_s) end