Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Gem::Request.get_proxy_from_env

get_proxy_from_env(scheme = "http")

Returns a proxy URI for the given scheme if one is set in the environment variables.