Stefan Adams
and 1 contributors

NAME

Mojolicious::Plugin::SecureOnly - Mojolicious Plugin to force all requests secure.

SYNOPSIS

  # Mojolicious
  $self->plugin('SecureOnly');

  # Mojolicious::Lite
  plugin 'SecureOnly' => {secureport => 3001};

DESCRIPTION

Mojolicious::Plugin::SecureOnly is a Mojolicious plugin that will redirect all insecure requests to a secure resource.

METHODS

Mojolicious::Plugin::SecureOnly inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.