class Roda::RodaPlugins::Chunked::Body
def each
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("%x\r\n" % chunk.bytesize) yield(chunk) yield("\r\n") end ensure yield("0\r\n\r\n") end