Merged 5.49_01 (r1339) from refactored branch to trunk
[catagits/Catalyst-Runtime.git] / t / live / lib / TestApp / Controller / Engine / Response / Redirect.pm
CommitLineData
dd4e6fd2 1package TestApp::Controller::Engine::Response::Redirect;
2
3use strict;
4use base 'Catalyst::Base';
5
6sub one : Relative {
7 my ( $self, $c ) = @_;
8 $c->response->redirect('/test/writing/is/boring');
9}
10
11sub two : Relative {
12 my ( $self, $c ) = @_;
13 $c->response->redirect('http://www.google.com/');
14}
15
16sub three : Relative {
17 my ( $self, $c ) = @_;
18 $c->response->redirect('http://www.google.com/');
19 $c->response->status(301); # Moved Permanently
20}
21
22sub four : Relative {
23 my ( $self, $c ) = @_;
24 $c->response->redirect('http://www.google.com/');
25 $c->response->status(307); # Temporary Redirect
26}
27
281;
29