Rack response body instance for chunked responses using
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("%x\r\n" % chunk.bytesize) yield(chunk) yield("\r\n") end ensure yield("0\r\n\r\n") end
Save the scope of the current request handling.
def initialize(scope) @scope = scope end