Mojolicious::Plugin::PoweredBy - Powered by plugin
# Mojolicious $self->plugin('PoweredBy'); $self->plugin(PoweredBy => (name => 'MyApp 1.0')); # Mojolicious::Lite plugin 'PoweredBy'; plugin PoweredBy => (name => 'MyApp 1.0');
Mojolicious::Plugin::PoweredBy is a plugin that adds an X-Powered-By header which defaults to Mojolicious (Perl).
X-Powered-By
Mojolicious (Perl)
This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins, you're welcome to fork it.
Mojolicious::Plugin::PoweredBy supports the following options.
name
plugin PoweredBy => (name => 'MyApp 1.0');
Value for X-Powered-By header.
Mojolicious::Plugin::PoweredBy inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register(Mojolicious->new); $plugin->register(Mojolicious->new, {name => 'MyFramework 1.0'});
Register plugin hooks in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.