Sha256: db44465d1d1d794b39cc9ada5ee24d83f4e285868933cba29d84c3867af5b2aa

Contents?: true

Size: 481 Bytes

Versions: 429

Compression:

Stored size: 481 Bytes

Contents

# A pool that does not cache HTTP connections.
#
# @api private
class Puppet::Network::HTTP::NoCachePool
  def initialize(factory = Puppet::Network::HTTP::Factory.new)
    @factory = factory
  end

  # Yields a <tt>Net::HTTP</tt> connection.
  #
  # @yieldparam http [Net::HTTP] An HTTP connection
  def with_connection(site, verify, &block)
    http = @factory.create_connection(site)
    verify.setup_connection(http)
    yield http
  end

  def close
    # do nothing
  end
end

Version data entries

429 entries across 429 versions & 3 rubygems

Version Path
puppet-5.5.22 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.22-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.22-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.22-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-5.5.21 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.21-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.21-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.21-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-5.5.20 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.20-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.20-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.20-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-5.5.19 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.19-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.19-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.19-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-5.5.18 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.18-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.18-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-5.5.18-universal-darwin lib/puppet/network/http/nocache_pool.rb