Method: HTTPClient::SSLSocketWrap#initialize
- Defined in:
- lib/httpclient/session.rb
#initialize(socket, context, debug_dev = nil) ⇒ SSLSocketWrap
Returns a new instance of SSLSocketWrap.
262 263 264 265 266 267 268 269 270 |
# File 'lib/httpclient/session.rb', line 262 def initialize(socket, context, debug_dev = nil) unless SSLEnabled raise ConfigurationError.new('Ruby/OpenSSL module is required') end @context = context @socket = socket @ssl_socket = create_openssl_socket(@socket) @debug_dev = debug_dev end |