Class: Net::HTTPS
- Inherits:
-
HTTP
- Object
- HTTP
- Net::HTTPS
- Defined in:
- lib/dewey/https.rb
Instance Method Summary collapse
-
#initialize(address, port = 443) ⇒ HTTPS
constructor
A new instance of HTTPS.
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 |