Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTP#keep_alive?
keep_alive?(req, res)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/net/http.rb, line 2496
def keep_alive?(req, res)
return false if req.connection_close?
if @curr_http_version <= '1.0'
res.connection_keep_alive?
else # HTTP/1.1 or later
not res.connection_close?
end
end
No documentation available