Method: Puppet::HTTP::ResponseNetHTTP#initialize

Defined in:
lib/puppet/http/response_net_http.rb

#initialize(url, nethttp) ⇒ ResponseNetHTTP

Create a response associated with the URL.

Parameters:

  • url (URI)
  • nethttp (Net::HTTPResponse)

    The response



10
11
12
13
14
# File 'lib/puppet/http/response_net_http.rb', line 10

def initialize(url, nethttp)
  super(url, nethttp.code.to_i, nethttp.message)

  @nethttp = nethttp
end