Sha256: c7098d946c112c8aecfabb1124837b56e14dbb2fc9d87614c15378b767faba82

Contents?: true

Size: 557 Bytes

Versions: 14

Compression:

Stored size: 557 Bytes

Contents

module Net
  class HTTP

    # Sets the endpoint +address+ and +port+.
    def endpoint(address, port)
      @address, @port = address, port
    end

    # Convenience method for setting SSL client authentication
    # through a Hash of +options+.
    def ssl_client_auth(options)
      self.use_ssl = true
      self.cert = options[:cert] if options[:cert]
      self.key = options[:key] if options[:key]
      self.ca_file = options[:ca_file] if options[:ca_file]
      self.verify_mode = options[:verify_mode] if options[:verify_mode]
    end

  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
savon-xaop-0.7.2.7 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.6 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.5 lib/savon/core_ext/net_http.rb
johnreitano-savon-0.7.2.1 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.4 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.3 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.2 lib/savon/core_ext/net_http.rb
savon-xaop-0.7.2.1 lib/savon/core_ext/net_http.rb
savon-0.7.5 lib/savon/core_ext/net_http.rb
savon-0.7.4 lib/savon/core_ext/net_http.rb
savon-0.7.3 lib/savon/core_ext/net_http.rb
savon-0.7.2 lib/savon/core_ext/net_http.rb
savon-0.7.1 lib/savon/core_ext/net_http.rb
savon-0.7.0 lib/savon/core_ext/net_http.rb