method

encode_gzip

v1_8_7_330 - Show latest stable - Class: SOAP::RPC::SOAPlet
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