Represents HTTP response status code. Defines constants for HTTP response and some conditional methods.
Returns true if the given status is thought to be redirect. See also REDIRECT_STATUS.
# File lib/httpclient/http.rb, line 56
56: def self.redirect?(status)
57: REDIRECT_STATUS.include?(status)
58: end
Returns true if the given status represents successful HTTP response. See also SUCCESSFUL_STATUS.
# File lib/httpclient/http.rb, line 50
50: def self.successful?(status)
51: SUCCESSFUL_STATUS.include?(status)
52: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.