class Roda::RodaPlugins::Chunked::Body

Rack response body instance for chunked responses

def each

a 0 sized chunk to finish the response.
the chunk. After all chunks have been yielded, yield
with the size of the request in ASCII hex format, then
yield it it to the caller in chunked format, starting
For each response chunk yielded by the scope,
def each
  @scope.each_chunk do |chunk|
    next if !chunk || chunk.empty?
    yield(CHUNK_SIZE % chunk.bytesize)
    yield(chunk)
    yield(CRLF)
  end
ensure
  yield(FINISH)
end

def initialize(scope)

Save the scope of the current request handling.
def initialize(scope)
  @scope = scope
end