Sha256: d88177b37df6ad8a543ce495b4b16b4716c8a81923bb6b770292decd0e83c568

Contents?: true

Size: 629 Bytes

Versions: 68

Compression:

Stored size: 629 Bytes

Contents

require 'puppet/file_serving/metadata'
require 'puppet/indirector/generic_http'
require 'puppet/network/http'

class Puppet::Indirector::FileContent::Http < Puppet::Indirector::GenericHttp
  desc "Retrieve file contents from a remote HTTP server."

  include Puppet::FileServing::TerminusHelper
  include Puppet::Network::HTTP::Compression.module

  @http_method = :get

  def initialize
    Puppet.deprecation_warning(_("Puppet::Indirector::FileContent::Http is deprecated. Use Puppet::HTTP::Client instead."))
    super
  end

  def find(request)
    response = super
    model.from_binary(uncompress_body(response))
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
puppet-6.29.0 lib/puppet/indirector/file_content/http.rb
puppet-6.29.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.29.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.29.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.28.0 lib/puppet/indirector/file_content/http.rb
puppet-6.28.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.28.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.28.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.27.0 lib/puppet/indirector/file_content/http.rb
puppet-6.27.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.27.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.27.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.26.0 lib/puppet/indirector/file_content/http.rb
puppet-6.26.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.26.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.26.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.25.1 lib/puppet/indirector/file_content/http.rb
puppet-6.25.1-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.25.1-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.25.1-universal-darwin lib/puppet/indirector/file_content/http.rb