Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Net::HTTPResponse.body_permitted?
body_permitted?
lib/net/http/response.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http/response.rb, line 138
def body_permitted?
self::HAS_BODY
end
true if the response has a body.