full_url

in lib/elastic/transport/transport/connections/connection.rb [57:66]


          def full_url(path, params = {})
            url  = "#{host[:protocol]}://"
            url += "#{CGI.escape(host[:user])}:#{CGI.escape(host[:password])}@" if host[:user]
            url += "#{host[:host]}:#{host[:port]}"
            url += "#{host[:path]}" if host[:path]
            full_path = full_path(path, params)
            url += '/' unless full_path.match?(/^\//)
            url += full_path
          end