Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPResponse#value
() -> (nil | untyped)
value
lib/net/http/response.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/net/http/response.rb, line 285
def value
error! unless self.kind_of?(Net::HTTPSuccess)
end
Raises an HTTP error if the response is not 2xx (success).