class HTTP::Features::AutoDeflate
def initialize(*)
def initialize(*) super @method = @opts.key?(:method) ? @opts[:method].to_s : "gzip" raise Error, "Only gzip and deflate methods are supported" unless %w[gzip deflate].include?(@method) end
def initialize(*) super @method = @opts.key?(:method) ? @opts[:method].to_s : "gzip" raise Error, "Only gzip and deflate methods are supported" unless %w[gzip deflate].include?(@method) end