class Rack::Chunked::Body
A body wrapper that emits chunked responses.
def close
def close @body.close if @body.respond_to?(:close) end
def each(&block)
For each element yielded by the response body, yield
def each(&block) term = TERM @body.each do |chunk| size = chunk.bytesize next if size == 0 yield [size.to_s(16), term, chunk.b, term].join end yield TAIL yield_trailers(&block) yield term end
def initialize(body)
def initialize(body) @body = body end
def yield_trailers
def yield_trailers end