method
keep_alive?
keep_alive?(req, res)
private
Hide source
# File lib/net/http.rb, line 1227 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