static public Method

HTTP.keep_alive_enabled?(version)

There's no documentation for this item.

Source Code

# File httpclient/http.rb, line 56
def keep_alive_enabled?(version)
  ProtocolVersionRegexp =~ version
  if !($1 and $2)
    false
  elsif $1.to_i > 1
    true
  elsif $1.to_i == 1 and $2.to_i >= 1
    true
  else
    false
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.