Parent

Methods

Class Index [+]

Quicksearch

Rack::Deflater::DeflateStream

Constants

DEFLATE_ARGS

Public Class Methods

new(body) click to toggle source
    # File lib/rack/deflater.rb, line 86
86:       def initialize(body)
87:         @body = body
88:       end

Public Instance Methods

each() click to toggle source
    # File lib/rack/deflater.rb, line 90
90:       def each
91:         deflater = ::Zlib::Deflate.new(*DEFLATE_ARGS)
92:         @body.each { |part| yield deflater.deflate(part, Zlib::SYNC_FLUSH) }
93:         @body.close if @body.respond_to?(:close)
94:         yield deflater.finish
95:         nil
96:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.