Sha256: f50922fe65fc4be0f28272fe50e5a4d72c0a9d6fe3fd08e77a463660659414bb
Contents?: true
Size: 844 Bytes
Versions: 8
Compression:
Stored size: 844 Bytes
Contents
require 'puppet/network/http/connection' module Puppet::Network; end # This class is basically a placeholder for managing a pool of HTTP connections; # at present it does not actually attempt to pool them. Historically, it did # attempt to do so, but this didn't work well based on Puppet's threading model. # The pooling functionality has been removed, but this abstraction is still here # because the API is used in various places and because it could be useful # should we decide to implement pooling at some point in the future. module Puppet::Network::HttpPool # Retrieve a cached http instance if caching is enabled, else return # a new one. def self.http_instance(host, port, use_ssl = true, verify_peer = true) Puppet::Network::HTTP::Connection.new(host, port, :use_ssl => use_ssl, :verify_peer => verify_peer) end end
Version data entries
8 entries across 8 versions & 1 rubygems