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-2023 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE
file and https://dev.perl.org/licenses/