HTTP Container

HTTP Module is a contatiner for HTTP related tools. See HTTPAccess.

Methods
Classes and Modules
Module HTTP::Status
Class HTTP::BadResponseError
Class HTTP::Error
Class HTTP::Message
Constants
ProtocolVersionRegexp = Regexp.new('^(?:HTTP/|)(\d+)\.(\d+)$')
Public Class methods
http_date(a_time)
# File lib/facets/more/http.rb, line 58
    def http_date(a_time)
      a_time.gmtime.strftime("%a, %d %b %Y %H:%M:%S GMT")
    end
keep_alive_enabled?(version)
# File lib/facets/more/http.rb, line 63
    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