in lib/elastic/transport/transport/base.rb [159:171]
def __connections_from_host
hosts.map do |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)
end
end