Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::HTTPResponse#body=

body=(value)

Because it may be necessary to modify the body, Eg, decompression this method facilitates that.

See also #body #inspect .response_class #procdest also in 3.4 · 3.3 · 3.2 · 3.1