Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTP#proxy?
proxy?
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http.rb, line 1785
def proxy?
!!(@proxy_from_env ? proxy_uri : @proxy_address)
end
Returns true if a proxy server is defined, false otherwise; see Proxy Server.
See also
#proppatch
#proxy_address
#propfind
#proxy_from_env?
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0