Method: HTTPX::SSL#initialize
- Defined in:
- lib/httpx/io/ssl.rb
#initialize(_, _, options) ⇒ SSL
Returns a new instance of SSL.
13 14 15 16 17 18 19 |
# File 'lib/httpx/io/ssl.rb', line 13 def initialize(_, _, ) @ctx = OpenSSL::SSL::SSLContext.new = TLS_OPTIONS.merge(.ssl) @ctx.set_params() unless .empty? super @state = :negotiated if @keep_open end |