# File lib_core/rucy/response.rb, line 128 def conn_keep_alive(req_version) case (req_version) when 'HTTP/1.1' delete_header_if('Connection') { |value| value =~ /close/i } when 'HTTP/1.0' if (has_header? 'Content-Length') then delete_header_if('Connection') { |value| value =~ /close/i } if (! headers('Connection').find{ |v| v =~ /Keep-Alive/i }) then set_header('Connection', 'Keep-Alive', true) end else conn_close end else conn_close end nil end