in opensearch-transport/lib/opensearch/transport/transport/base.rb [155:170]
def __build_connections
Connections::Collection.new \
:connections => hosts.map { |host|
host[:protocol] = host[:scheme] || options[:scheme] || options[:http][:scheme] || DEFAULT_PROTOCOL
host[:port] ||= options[:port] || options[:http][:port] || DEFAULT_PORT
if (options[:user] || options[:http][:user]) && !host[:user]
host[:user] ||= options[:user] || options[:http][:user]
host[:password] ||= options[:password] || options[:http][:password]
end
__build_connection(host, (options[:transport_options] || {}), @block)
},
:selector_class => options[:selector_class],
:selector => options[:selector]
end