Ruby Net::HTTPResponse Functions

EditRocket provides the following information on Net::HTTPResponse functions in the Ruby source code builder.

body() - Returns the entity body.

body_permitted?() - true if the response has body.

entity() - "Alias for #body"

inspect() -

read_body(dest = nil, &block) - Gets entity body. If the block given, yields it to block. The body is provided in fragments, as it is read in from the socket.

to_ary() - For backward compatibility. To allow Net::HTTP 1.1 style assignment e.g.

value() - Raises HTTP error if the response is not 2xx.