connection_for(uri)
public
Creates or an HTTP connection based on uri, or retrieves an
existing connection, using a proxy if needed.
# File lib/rubygems/request.rb, line 131
def connection_for(uri)
@connection_pool.checkout
rescue defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : Errno::EHOSTDOWN,
Errno::EHOSTDOWN => e
raise Gem::RemoteFetcher::FetchError.new(e.message, uri)
end