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)
lib/net/http/response.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http/response.rb, line 240
def body=(value)
@body = value
end
Because it may be necessary to modify the body, Eg, decompression this method facilitates that.