WWW::Suffit::Plugin::ServerInfo - The WWW::Suffit Plugin for show Server and Perl environment data
# 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
The WWW::Suffit Plugin for show Server and Perl environment data
This plugin supports the following options
debug => 1,
Switches on the debug mode. This mode performs show log history and dump of config
route => "/serverinfo",
Sets route name and show server info by it
template => "suffit_serverinfo",
Sets template for rendering. Default: suffit_serverinfo
Internal methods
Do not use directly. It is called by Mojolicious.
Mojolicious, Mojolicious::Plugin
Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2023 D&D Corporation. All Rights Reserved
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/
LICENSE
To install WWW::Suffit::Plugin::ServerInfo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Suffit::Plugin::ServerInfo
CPAN shell
perl -MCPAN -e shell install WWW::Suffit::Plugin::ServerInfo
For more information on module installation, please visit the detailed CPAN module installation guide.