Method: Puppet::HTTP::Service#with_base_url

Defined in:
lib/puppet/http/service.rb

#with_base_url(path) ⇒ URI

Return the url with the given path encoded and appended

Parameters:

  • path (String)

    the string to append to the base url

Returns:

  • (URI)

    the URI object containing the encoded path



80
81
82
83
84
# File 'lib/puppet/http/service.rb', line 80

def with_base_url(path)
  u = @url.dup
  u.path += Puppet::Util.uri_encode(path)
  u
end