Subject: | Need "reload" method or access to the request object |
To even more simulate a browser, a "reload" method would be nice that simply sends the last request again. This makes it necessary to have either access to the last request (via the old $agent->req() method or via $agent->{req}) or to have that method within the class.
A possible implementation would be :
sub reload {
my ($self) = @_;
$self->request($self->{req})
if ($self->{req});
};