in lib/elastic/transport/transport/http/manticore.rb [120:137]
def __build_connections
apply_headers(options)
Connections::Collection.new(
connections: hosts.map do |host|
host[:protocol] = host[:scheme] || DEFAULT_PROTOCOL
host[:port] ||= DEFAULT_PORT
host.delete(:user)
host.delete(:password)
Connections::Connection.new(host: host, connection: @manticore)
end,
selector_class: options[:selector_class],
selector: options[:selector]
)
end