Module: Raggle::Proxy

Module | Raggle::Proxy
In: | raggle (CVS)

Proxy-related methods for Raggle.

### Methods

find_proxy find_win32_proxy

### Public Class methods

find_proxy(host)

Get host, port, and no_proxy proxy information for a given host.

Checks $config[‘proxy’], then ENV[‘http_proxy’] / ENV[‘no_proxy’]. Also calls Proxy::find_win32_proxy if we’re in Windows.

Example:

      Proxy::find_proxy #=> {"host"=>"proxy", "port"=>3128}

find_win32_proxy()

Find a proxy in Windows by checking the registry.

Example:

      Proxy::find_win32_proxy #=> {"host"=>"proxy", "port"=>3128}

[Validate]