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-5.5.22 lib/puppet/indirector/file_content/http.rb
puppet-5.5.22-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.22-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.22-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-5.5.21 lib/puppet/indirector/file_content/http.rb
puppet-5.5.21-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.21-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.21-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-6.15.0 lib/puppet/indirector/file_content/http.rb
puppet-6.15.0-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.15.0-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-6.15.0-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-5.5.20 lib/puppet/indirector/file_content/http.rb
puppet-5.5.20-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.20-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.20-universal-darwin lib/puppet/indirector/file_content/http.rb
puppet-5.5.19 lib/puppet/indirector/file_content/http.rb
puppet-5.5.19-x86-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.19-x64-mingw32 lib/puppet/indirector/file_content/http.rb
puppet-5.5.19-universal-darwin lib/puppet/indirector/file_content/http.rb