Implemented $c->allow_ssl.
[catagits/Catalyst-Plugin-RequireSSL.git] / t / lib / TestApp / C / SSL.pm
CommitLineData
4585dfb1 1package TestApp::C::SSL;
2
3use strict;
4use base 'Catalyst::Base';
5
6sub secured : Local {
7 my ( $self, $c ) = @_;
8
9 $c->require_ssl;
10
11 $c->res->output( 'Secured' );
12}
13
14sub unsecured : Local {
15 my ( $self, $c ) = @_;
16
17 $c->res->output( 'Unsecured' );
18}
19
c4744895 20sub maybe_secured : Local {
21 my ( $self, $c ) = @_;
22
23 $c->allow_ssl;
24
25 $c->res->output( 'Maybe secured' );
26}
27
4585dfb1 281;