Class: Net::HTTP

Inherits:
Object show all
Defined in:
lib/savon/core_ext/net_http.rb

Instance Method Summary collapse

Instance Method Details

#endpoint(address, port) ⇒ Object

Sets the endpoint address and port.



5
6
7
# File 'lib/savon/core_ext/net_http.rb', line 5

def endpoint(address, port)
  @address, @port = address, port
end

#ssl_client_auth(options) ⇒ Object

Convenience method for setting SSL client authentication through a Hash of options.



10
11
12
13
14
15
16
# File 'lib/savon/core_ext/net_http.rb', line 10

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