CHips L MINI SHELL

CHips L pro

Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/generic_http.rb

require 'puppet/file_serving/terminus_helper'
require 'puppet/util/http_proxy'

class Puppet::Indirector::GenericHttp < Puppet::Indirector::Terminus
  desc "Retrieve data from a remote HTTP server."

  class <<self
    attr_accessor :http_method
  end

  def find(request)
    uri = URI(request.uri)
    method = self.class.http_method
    Puppet::Util::HttpProxy.request_with_redirects(uri,method)
  end
end

Copyright 2K16 - 2K18 Indonesian Hacker Rulez