class Roda::RodaPlugins::Chunked::Body
Rack response body instance for chunked responses
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(CHUNK_SIZE % chunk.bytesize) yield(chunk) yield(CRLF) end ensure yield(FINISH) end
def initialize(scope)
def initialize(scope) @scope = scope end