class

Mechanize::History

Inherits Reference / Object

This class represents the history of http response you sent. If you send a request, mechanize saves the history.

Constructors

new(max_size : Int32 = 100, array : Array(Mechanize::Page) = Array(Page).new)
Source

Instance methods

array
Source
array=(array : Array(Page))
Source
empty?(*args, **options)
Source
empty?(*args, **options, &)
Source
last(*args, **options)
Source
last(*args, **options, &)
Source
max_size

max page size history can save. default is 100. as same as agent.max_history.

Source
max_size=(max_size : Int32)

max page size history can save. default is 100. as same as agent.max_history.

Source
pop

take the last page out from history.

Source
push(page, uri = nil)

add page to history.

Source
size(*args, **options)
Source
size(*args, **options, &)
Source