PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/response.rb |
class Puppet::Network::HTTP::Response
def initialize(handler, response)
@handler = handler
@response = response
end
def respond_with(code, type, body)
format = Puppet::Network::FormatHandler.format_for(type)
mime = format.mime
charset = format.charset
if charset
if body.is_a?(String) && body.encoding != charset
body.encode!(charset)
end
mime += "; charset=#{charset.name.downcase}"
end
@handler.set_content_type(@response, mime)
@handler.set_response(@response, body, code)
end
end