Skip to content
instance method

Net::HTTP#use_ssl=

(::boolish flag) -> void
use_ssl=(flag)

Sets whether a new session is to use Transport Layer Security:

Raises IOError if attempting to change during a session.

Raises OpenSSL::SSL::SSLError if the port is not an HTTPS port.

See also #use_ssl? #unlock #trace #write_timeout= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0