File: Abort.pm

package info (click to toggle)
libcatalyst-perl 5.7006-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,128 kB
  • ctags: 798
  • sloc: perl: 9,937; makefile: 46
file content (26 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package TestApp::Controller::Action::Auto::Abort;

use strict;
use base 'TestApp::Controller::Action';

sub auto : Private {
    my ( $self, $c ) = @_;
    return 0;
}

sub default : Private {
    my ( $self, $c ) = @_;
    $c->res->body( 'abort default' );
}

sub end : Private {
    my ( $self, $c ) = @_;
    $c->res->body( 'abort end' ) unless $c->res->body;
}

sub one : Local {
    my ( $self, $c ) = @_;
    $c->res->body( 'abort one' );
}

1;