class Roda::RodaPlugins::Chunked::StreamBody
using Transfer-Encoding: chunked.
Rack response body instance for chunked responses not
def each(&block)
Yield each non-empty chunk as the body.
def each(&block) @scope.each_chunk do |chunk| yield chunk if chunk && !chunk.empty? end end
def initialize(scope)
Save the scope of the current request handling.
def initialize(scope) @scope = scope end