Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Net::HTTPSession.https_default_port
https_default_port
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/net/http.rb, line 951
def HTTP.https_default_port
443
end
Returns integer 443, the default port to use for HTTPS requests:
Example
Net::HTTP.https_default_port # => 443