Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::HTTP#use_ssl=

use_ssl=(flag)

Turn on/off SSL. This flag must be set before starting session. If you change use_ssl value after session started, a Net::HTTP object raises IOError.

See also #use_ssl? #unlock #unescape #write_timeout= also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0