Method: Patron::Response#body

Defined in:
lib/patron/response.rb

#bodyString? (readonly)

Returns the response body as a String encoded as Encoding::BINARY or or nil if the response was written directly to a file.

Returns:

  • (String, nil)

    the response body as a String encoded as Encoding::BINARY or or nil if the response was written directly to a file



21
22
23
# File 'lib/patron/response.rb', line 21

def body
  @body
end