improvements to redirect doc
Kieren Diment [Wed, 20 Aug 2008 18:25:20 +0000 (18:25 +0000)]
lib/Catalyst/Response.pm

index 53d8ad8..0107be0 100644 (file)
@@ -112,6 +112,11 @@ C<302>.
     $c->response->redirect( 'http://slashdot.org' );
     $c->response->redirect( 'http://slashdot.org', 307 );
 
+This is a convenience method that sets the Location header to the
+redirect destination, and then sets the response status.  You will
+want to C< return; > or C< $c->detach() > to interrupt the normal
+processing flow if you want the redirect to occur straight away.
+
 =cut
 
 sub redirect {