Parent

Methods

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]

(Not documented)

response_code[R]

(Not documented)

verb[R]

(Not documented)

uri[R]

(Not documented)

Public Class Methods

new(page, verb) click to toggle source

(Not documented)

# 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

(Not documented)

# 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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.