method

encode_gzip

ruby latest stable - Class: SOAP::RPC::SOAPlet

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

encode_gzip(req, outstring)
private

No documentation available.

# File lib/soap/rpc/soaplet.rb, line 139
  def encode_gzip(req, outstring)
    unless encode_gzip?(req)
      return nil
    end
    begin
      ostream = StringIO.new
      gz = Zlib::GzipWriter.new(ostream)
      gz.write(outstring)
      ostream.string
    ensure
      gz.close
    end
  end