instance method
Net::HTTP#proxy_port
() -> ::Integer?
proxy_port
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/net/http.rb, line 1913
def proxy_port
if @proxy_from_env then
proxy_uri&.port
else
@proxy_port
end
end
Returns the port number of the proxy server, if defined, nil otherwise; see Proxy Server.