class Puppet::Network::HTTP::NoCachePool

A pool that does not cache HTTP connections.

@api private

Public Instance Methods

close() click to toggle source
# File lib/puppet/network/http/nocache_pool.rb, line 18
def close
  # do nothing
end
with_connection(site, verify) { |http| ... } click to toggle source

Yields a Net::HTTP connection.

@yieldparam http [Net::HTTP] An HTTP connection

# File lib/puppet/network/http/nocache_pool.rb, line 12
def with_connection(site, verify, &block)
  http = @factory.create_connection(site)
  verify.setup_connection(http)
  yield http
end

Public Class Methods

new(factory = Puppet::Network::HTTP::Factory.new) click to toggle source
# File lib/puppet/network/http/nocache_pool.rb, line 5
def initialize(factory = Puppet::Network::HTTP::Factory.new)
  @factory = factory
end