End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Net::HTTP.proxy_class?
proxy_class?
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http.rb, line 1118
def proxy_class?
defined?(@is_proxy_class) ? @is_proxy_class : false
end
returns true if self is a class which was created by HTTP::Proxy.