class HTTP::Features::AutoDeflate::DeflatedBody
Public Instance Methods
compress() { |deflate| ... }
click to toggle source
# File lib/http/features/auto_deflate.rb, line 89 def compress deflater = Zlib::Deflate.new @body.each { |chunk| yield deflater.deflate(chunk) } yield deflater.finish ensure deflater.close end