Mojolicious::Plugin::SaveRequest - Mojolicious Plugin
# 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');
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
Mojolicious::Plugin::SaveRequest inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious::Plugin::SaveRequest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SaveRequest
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SaveRequest
For more information on module installation, please visit the detailed CPAN module installation guide.