Parent

Class Index [+]

Quicksearch

Net::HTTP

Public Instance Methods

keep_alive?(req, res) click to toggle source
    # File lib/mechanize/monkey_patch.rb, line 4
 4:     def keep_alive?(req, res)
 5:       return false if /close/ =~ req['connection'].to_s
 6:       return false if @seems_1_0_server
 7:       return false if /close/      =~ res['connection'].to_s
 8:       return true  if /keep-alive/ =~ res['connection'].to_s
 9:       return false if /close/      =~ res['proxy-connection'].to_s
10:       return true  if /keep-alive/ =~ res['proxy-connection'].to_s
11:       (@curr_http_version == '1.1')
12:     end
Also aliased as: old_keep_alive?
old_keep_alive?(req, res) click to toggle source
Alias for: keep_alive?

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.