class Mechanize::RedirectNotGetOrHeadError

Thrown when a POST, PUT, or DELETE request results in a redirect see RFC 2616 10.3.2, 10.3.3 www.ietf.org/rfc/rfc2616.txt

Attributes

page[R]
response_code[R]
uri[R]
verb[R]

Public Class Methods

new(page, verb) click to toggle source
# File lib/mechanize/redirect_not_get_or_head_error.rb, line 6
def initialize(page, verb)
  @page           = page
  @verb           = verb
  @uri            = page.uri
  @response_code  = page.code
end

Public Instance Methods

inspect() click to toggle source
Alias for: to_s
to_s() click to toggle source
# File lib/mechanize/redirect_not_get_or_head_error.rb, line 13
def to_s
  "#{@response_code} redirect received after a #{@verb} request"
end
Also aliased as: inspect