Method: Mechanize::HTTP::Agent#disable_keep_alive

Defined in:
lib/mechanize/http/agent.rb

#disable_keep_alive(request) ⇒ Object



562
563
564
# File 'lib/mechanize/http/agent.rb', line 562

def disable_keep_alive request
  request['connection'] = 'close' unless @keep_alive
end