Files

HTTP::Status

Represents HTTP response status code. Defines constants for HTTP response and some conditional methods.

Constants

OK
CREATED
ACCEPTED
NON_AUTHORITATIVE_INFORMATION
NO_CONTENT
RESET_CONTENT
PARTIAL_CONTENT
MOVED_PERMANENTLY
FOUND
SEE_OTHER
TEMPORARY_REDIRECT
BAD_REQUEST
UNAUTHORIZED
PROXY_AUTHENTICATE_REQUIRED
INTERNAL
SUCCESSFUL_STATUS

Status codes for successful HTTP response.

REDIRECT_STATUS

Status codes which is a redirect.

Public Class Methods

redirect?(status) click to toggle source

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
successful?(status) click to toggle source

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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.