method
begin_transport
begin_transport(req)
private
Hide source
# File lib/net/http.rb, line 1451 def begin_transport(req) if @socket.closed? connect elsif @last_communicated && @last_communicated + @keep_alive_timeout < Time.now D 'Conn close because of keep_alive_timeout' @socket.close connect end if not req.response_body_permitted? and @close_on_empty_response req['connection'] ||= 'close' end req.update_uri address, port, use_ssl? req['host'] ||= addr_port() end