class Protocol::HTTP::Body::Deflate
def self.for(body, window_size = GZIP, level = DEFAULT_LEVEL)
@parameter level [Integer] the compression level to use.
@parameter window_size [Integer] the window size to use for compression.
@parameter body [Readable] the body to wrap.
Create a new body which compresses the given body using the GZIP algorithm by default.
def self.for(body, window_size = GZIP, level = DEFAULT_LEVEL) self.new(body, Zlib::Deflate.new(level, window_size)) end