class Sinatra::Helpers::Stream

def callback(&block)

def callback(&block)
  return yield if closed?
  @callbacks << block
end