Method: HTTPClient::SSLSocketWrap#initialize

Defined in:
lib/httpclient/session.rb

#initialize(socket, context, debug_dev = nil) ⇒ SSLSocketWrap

Returns a new instance of SSLSocketWrap.



289
290
291
292
293
294
295
296
297
# File 'lib/httpclient/session.rb', line 289

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