Rack response body instance for chunked responses not using Transfer-Encoding: chunked.
Public Class methods
new(scope)
Save the scope of the current request handling.
[show source]
# File lib/roda/plugins/chunked.rb 200 def initialize(scope) 201 @scope = scope 202 end
Public Instance methods
each(&block)
Yield each non-empty chunk as the body.
[show source]
# File lib/roda/plugins/chunked.rb 205 def each(&block) 206 @scope.each_chunk do |chunk| 207 yield chunk if chunk && !chunk.empty? 208 end 209 end