1 package TestApp::Controller::Engine::Response::Redirect;
4 use base 'Catalyst::Controller';
8 $c->response->redirect('/test/writing/is/boring');
12 my ( $self, $c ) = @_;
13 $c->response->redirect('http://www.google.com/');
16 sub three : Relative {
17 my ( $self, $c ) = @_;
18 $c->response->redirect('http://www.google.com/');
19 $c->response->status(301); # Moved Permanently
23 my ( $self, $c ) = @_;
24 $c->response->redirect('http://www.google.com/');
25 $c->response->status(307); # Temporary Redirect