Class: Net::HTTP
Instance Method Summary collapse
-
#endpoint(address, port) ⇒ Object
Sets the endpoint
address
andport
. -
#ssl_client_auth(options) ⇒ Object
Convenience method for setting SSL client authentication through a Hash of
options
.
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
.
11 12 13 14 15 16 17 |
# File 'lib/savon/core_ext/net_http.rb', line 11 def ssl_client_auth() self.use_ssl = true self.cert = [:cert] if [:cert] self.key = [:key] if [:key] self.ca_file = [:ca_file] if [:ca_file] self.verify_mode = [:verify_mode] if [:verify_mode] end |