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