Method: HTTPClient::SSLSocket#ssl_connect
- Defined in:
- lib/httpclient/ssl_socket.rb
#ssl_connect(hostname = nil) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/httpclient/ssl_socket.rb', line 42 def ssl_connect(hostname = nil) if hostname && @ssl_socket.respond_to?(:hostname=) @ssl_socket.hostname = hostname end @ssl_socket.connect if $DEBUG if @ssl_socket.respond_to?(:ssl_version) warn("Protocol version: #{@ssl_socket.ssl_version}") end warn("Cipher: #{@ssl_socket.cipher.inspect}") end post_connection_check(hostname) end |