Mojolicious::Plugin::PoweredBy3pm
Powered by plugin
Usage
# Mojolicious$self->plugin('PoweredBy');$self->plugin(PoweredBy => (name => 'MyApp 1.0'));# Mojolicious::Liteplugin 'PoweredBy';plugin PoweredBy => (name => 'MyApp 1.0');
Overview
Mojolicious::Plugin::PoweredBy is a plugin that adds an "X-Powered-By" header which defaults to "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.
Options
Mojolicious::Plugin::PoweredBy supports the following options.
"name"
plugin PoweredBy => (name => 'MyApp 1.0');
Value for "X-Powered-By" header.
Methods
Mojolicious::Plugin::PoweredBy inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
$plugin->register($app, $conf);
Register plugin hooks in Mojolicious application.
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.