Sha256: 3b98e2616e28309f98bd6b7bd72ad927c98b5e6e951466b0ffda6460db67adc4

Contents?: true

Size: 471 Bytes

Versions: 247

Compression:

Stored size: 471 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 find(request)
    response = super
    model.from_binary(uncompress_body(response))
  end
end

Version data entries

247 entries across 247 versions & 2 rubygems

Version Path
puppet-6.14.0 lib/puppet/indirector/file_content/http.rb
puppet-6.14.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.14.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.14.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.13.0 lib/puppet/indirector/file_content/http.rb
puppet-6.13.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.13.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.13.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.12.0 lib/puppet/indirector/file_content/http.rb
puppet-6.12.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.12.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.18 lib/puppet/indirector/file_content/http.rb
puppet-5.5.18-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.4.5 lib/puppet/indirector/file_content/http.rb
puppet-5.5.18-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.4.5-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.18-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.4.5-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.4.5-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.12.0-universal-darwin lib/puppet/indirector/file_content/http.rb