Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Net::HTTPResponse.response_class
response_class(code)
lib/net/http/response.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/net/http/response.rb, line 164
def response_class(code)
CODE_TO_OBJ[code] or
CODE_CLASS_TO_OBJ[code[0,1]] or
Net::HTTPUnknownResponse
end
No documentation available