class ActionController::Streaming::Body
:nodoc:
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 term end
def initialize(body)
def initialize(body) @body = body end