Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Net::HTTP.default_port
default_port
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http.rb, line 900
def HTTP.default_port
http_default_port()
end
Returns integer 80, the default port to use for HTTP requests:
Example
Net::HTTP.default_port # => 80