Method: HTTPClient::SSLSocket#initialize
- Defined in:
- lib/httpclient/ssl_socket.rb
#initialize(socket, context, debug_dev = nil) ⇒ SSLSocket
Returns a new instance of SSLSocket.
| 32 33 34 35 36 37 38 39 40 | # File 'lib/httpclient/ssl_socket.rb', line 32 def initialize(socket, context, debug_dev = nil) unless SSLEnabled raise ConfigurationError.new('Ruby/OpenSSL module is required') end @socket = socket @context = context @ssl_socket = create_openssl_socket(@socket) @debug_dev = debug_dev end |