| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |
Mojolicious::Plugin::PoweredBy - Powered By Plugin
# Mojolicious
$self->plugin('powered_by');
$self->plugin(powered_by => (name => 'MyApp 1.0'));
# Mojolicious::Lite
plugin 'powered_by';
plugin powered_by => (name => 'MyApp 1.0');
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.
powered_byplugin powered_by => (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;
Register plugin hooks in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |