Sha256: fdd61e757f5683a790619d317d3967b30102135a1ed88f941a44bffc052f38c3
Contents?: true
Size: 655 Bytes
Versions: 8
Compression:
Stored size: 655 Bytes
Contents
require 'rack/utils' # # We replace the default Rack::Chunked implementation with a non-op # version, as Jetty handles chunking for us. # module Rack class Chunked include Rack::Utils class Body include Rack::Utils def initialize(body) @body = body end def each(&block) @body.each(&block) end def close @body.close if @body.respond_to?(:close) end end def initialize(app) @app = app end def call(env) @app.call(env) end end end
Version data entries
8 entries across 8 versions & 2 rubygems