Class: Net::HTTPS

Inherits:
HTTP
  • Object
show all
Defined in:
lib/dewey/https.rb

Instance Method Summary collapse

Constructor Details

#initialize(address, port = 443) ⇒ HTTPS

Returns a new instance of HTTPS.



5
6
7
8
9
10
# File 'lib/dewey/https.rb', line 5

def initialize(address, port = 443)
  super(address, port)
  self.use_ssl = true
  @ssl_context = OpenSSL::SSL::SSLContext.new
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end