Method: Puppet::HTTP::Session#process_response
- Defined in:
- lib/puppet/http/session.rb
#process_response(response) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Collect per-site server versions. This will allow us to modify future requests based on the version of puppetserver we are talking to.
88 89 90 91 92 93 94 |
# File 'lib/puppet/http/session.rb', line 88 def process_response(response) version = response[Puppet::HTTP::HEADER_PUPPET_VERSION] if version site = Puppet::HTTP::Site.from_uri(response.url) @server_versions[site] = version end end |