static public Method

Status.redirect?(status)

There's no documentation for this item.

Source Code

# File httpclient/http.rb, line 38
def self.redirect?(status)
  [
    MOVED_PERMANENTLY, FOUND, SEE_OTHER,
    TEMPORARY_REDIRECT, MOVED_TEMPORARILY
  ].include?(status)
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.