End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Net::HTTP.version_1_2?
version_1_2?
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/net/http.rb, line 419
def HTTP.version_1_2?
true
end
Returns true if net/http is in version 1.2 mode. Defaults to true.