method
begin_transport
begin_transport(req)
private
Hide source
# File lib/net/http.rb, line 1068 def begin_transport(req) if @socket.closed? connect end if @seems_1_0_server req['connection'] ||= 'close' end if not req.response_body_permitted? and @close_on_empty_response req['connection'] ||= 'close' end req['host'] ||= addr_port() end