NAME
WWW::Suffit::Server::ServerInfo - The Mojolicious Plugin for show Server and Perl environment data
VERSION
Version 1.00
SYNOPSIS
# in your startup
$self->plugin('WWW::Suffit::Server::ServerInfo', {
route => "/serverinfo",
});
...or:
# in your startup
$self->plugin('WWW::Suffit::Server::ServerInfo');
$self->routes->get('/serverinfo')->to('suffit#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 Mojolicious Plugin for show Server and Perl environment data
OPTIONS
This plugin supports the following options
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/