HTTP::Engine::Middleware::Status - server status manager
my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::Status' => { launch_at => '/hem-server-status', plugins => [ 'Memory', # use HTTP::Engine::Middleware::Status::Memory ], }); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run(); # $ GET http//localhost/hem-server-status # to get the status contents
this module is given server status contents like Apache's mod_status.c to HTTP::Engine.
HTTP::Engine::Middleware::Status::Memory
Kazuhiro Osawa
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.