vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.1.0/lib/elasticsearch/transport/transport/base.rb
# Returns a full URL based on information from host
#
# @param host [Hash] Host configuration passed in from {Client}
#
# @api private
Returns a full URL based on information from host
Returns a full URL based on information from host
def __full_url(host)
          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]
          url
        end
def __full_url ( host ) 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 ] url end
Returns a full URL based on information from host
Returns a full URL based on information from host
host
Host configuration passed in from {Client}
Host configuration passed in from { Client }
api
None