Method: ESP.http_proxy

Defined in:
lib/esp.rb

.http_proxyString?

Reads the HTTP_PROXY environment variable if http_proxy= was not set manually.

Returns nil if no proxy or environment variable has been set.

Returns:

  • (String, nil)


81
82
83
# File 'lib/esp.rb', line 81

def self.http_proxy
  @http_proxy || ENV['http_proxy']
end