HTTP::Engine::Middleware::DebugRequest - dump request
my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::DebugRequest' => { logger => sub { warn @_; }, }); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run();
This middleware prints request info like Catalyst.
dann
HTTP::Engine::Middleware
To install HTTP::Engine::Middleware, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Engine::Middleware
CPAN shell
perl -MCPAN -e shell install HTTP::Engine::Middleware
For more information on module installation, please visit the detailed CPAN module installation guide.