Sha256: 9351bc2acb692573e0e34c2ab82934446e70b001235e0fa988d11e85e4d6dc87

Contents?: true

Size: 617 Bytes

Versions: 72

Compression:

Stored size: 617 Bytes

Contents

# A pool that does not cache HTTP connections.
#
# @api private
class Puppet::Network::HTTP::NoCachePool < Puppet::Network::HTTP::BasePool
  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, verifier, &block)
    http = @factory.create_connection(site)
    start(site, verifier, http)
    begin
      yield http
    ensure
      Puppet.debug("Closing connection for #{site}")
      http.finish
    end
  end

  def close
    # do nothing
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
puppet-6.12.0 lib/puppet/network/http/nocache_pool.rb
puppet-6.12.0-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.12.0-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.4.5 lib/puppet/network/http/nocache_pool.rb
puppet-6.4.5-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.4.5-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.4.5-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-6.12.0-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-6.11.1 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.1-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.1-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.1-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-6.11.0 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.0-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.0-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.11.0-universal-darwin lib/puppet/network/http/nocache_pool.rb
puppet-6.10.1 lib/puppet/network/http/nocache_pool.rb
puppet-6.10.1-x86-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.10.1-x64-mingw32 lib/puppet/network/http/nocache_pool.rb
puppet-6.10.1-universal-darwin lib/puppet/network/http/nocache_pool.rb