Server IP : 104.21.14.103 / Your IP : 3.143.5.131 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/http/ |
Upload File : |
# Adapts Net::HTTPResponse to Puppet::HTTP::Response # # @api public class Puppet::HTTP::ResponseNetHTTP < Puppet::HTTP::Response # Create a response associated with the URL. # # @param [URI] url # @param [Net::HTTPResponse] nethttp The response def initialize(url, nethttp) super(url, nethttp.code.to_i, nethttp.message) @nethttp = nethttp end # (see Puppet::HTTP::Response#body) def body @nethttp.body end # (see Puppet::HTTP::Response#read_body) def read_body(&block) raise ArgumentError, "A block is required" unless block_given? @nethttp.read_body(&block) end # (see Puppet::HTTP::Response#success?) def success? @nethttp.is_a?(Net::HTTPSuccess) end # (see Puppet::HTTP::Response#[]) def [](name) @nethttp[name] end # (see Puppet::HTTP::Response#each_header) def each_header(&block) @nethttp.each_header(&block) end end