Method: Puppet::HTTP::ResponseNetHTTP#body

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

#bodyString

Returns the entire response body. Can be used instead of

`Puppet::HTTP::Response.read_body`, but both methods cannot be used for the
same response.

Returns:

  • (String)

    Response body for the request



17
18
19
# File 'lib/puppet/http/response_net_http.rb', line 17

def body
  @nethttp.body
end