NAME

Mojolicious::Plugin::SaveRequest - Mojolicious Plugin

SYNOPSIS

# Mojolicious
$self->plugin('SaveRequest');

# Mojolicious::Lite
plugin 'SaveRequest';

# Save request state to $dir (relative to the absolute path of your app)
get '/' => (save => $dir) => sub {...};
$r->get('/')->over(save => $dir)->to(controller => 'Index', action => 'slash');

DESCRIPTION

Mojolicious::Plugin::SaveRequest is a Mojolicious plugin.

It saves the state of a request in a script that can be executed from the command-line at a later date. In addition, the debugger can be used to step through a request.

For example, run a saved request try:

/opt/perl state/2013-15-06/go.1371309475.241402.30552.00000000.pl script/the_app

METHODS

Mojolicious::Plugin::SaveRequest inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

$plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.