File: Dump.pm

package info (click to toggle)
libcatalyst-perl 5.90015-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,352 kB
  • sloc: perl: 16,643; makefile: 9
file content (40 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package TestApp::Controller::Dump;

use strict;
use base 'Catalyst::Controller';

sub default : Action {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump');
}

sub env : Action Relative {
    my ( $self, $c ) = @_;
    $c->stash(env => $c->req->env);
    $c->forward('TestApp::View::Dump::Env');
}

sub env_on_engine : Action Relative {
    my ( $self, $c ) = @_;
    $c->stash(env => $c->engine->env);
    $c->forward('TestApp::View::Dump::Env');
}

sub request : Action Relative {
    my ( $self, $c ) = @_;
    $c->req->params(undef); # Should be a no-op, and be ignored.
                            # Back compat test for 5.7
    $c->forward('TestApp::View::Dump::Request');
}

sub response : Action Relative {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Response');
}

sub body : Action Relative {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Body');
}

1;