Class: Puppetserver::Ca::Utils::HttpClient::URL
- Inherits:
-
Struct
- Object
- Struct
- Puppetserver::Ca::Utils::HttpClient::URL
- Defined in:
- lib/puppetserver/ca/utils/http_client.rb
Overview
Like URI, but not… maybe of suspicious value
Instance Method Summary collapse
Instance Method Details
#full_url ⇒ Object
140 141 142 143 144 145 146 |
# File 'lib/puppetserver/ca/utils/http_client.rb', line 140 def full_url url = protocol + '://' + host + ':' + port + '/' + [endpoint, version, resource_type, resource_name].join('/') url = url + "?" + URI.encode_www_form(query) unless query.nil? || query.empty? return url end |
#to_uri ⇒ Object
148 149 150 |
# File 'lib/puppetserver/ca/utils/http_client.rb', line 148 def to_uri URI(full_url) end |