NAME
WWW::Suffit::Plugin::ServerInfo - The WWW::Suffit Plugin for show Server and Perl environment data
SYNOPSIS
# in your startup
$self->plugin('WWW::Suffit::Plugin::ServerInfo', {
route => "/serverinfo",
});
...or:
# in your startup
$self->plugin('WWW::Suffit::Plugin::ServerInfo');
$self->routes->get('/serverinfo1')->to('ServerInfo#info');
$self->routes->get('/serverinfo2' => sub { shift->serverinfo });
# Curl Examples:
curl -H "Accept: text/html" http://localhost:8080/serverinfo
curl -H "Accept: text/plain" http://localhost:8080/serverinfo
curl -H "Accept: application/json" http://localhost:8080/serverinfo
DESCRIPTION
The WWW::Suffit Plugin for show Server and Perl environment data
OPTIONS
This plugin supports the following options
debug
debug => 1,
Switches on the debug mode. This mode performs show log history and dump of config
route
route => "/serverinfo",
Sets route name and show server info by it
template
template => "suffit_serverinfo",
Sets template for rendering. Default: suffit_serverinfo
METHODS
Internal methods
register
Do not use directly. It is called by Mojolicious.
SEE ALSO
Mojolicious, Mojolicious::Plugin
AUTHOR
Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2026 D&D Corporation
LICENSE
This program is distributed under the terms of the Artistic License Version 2.0
See the LICENSE file or https://opensource.org/license/artistic-2-0 for details