[Catalyst-commits] r8235 - / Catalyst-Runtime/5.70/trunk/lib/Catalyst

zarquon at dev.catalyst.perl.org zarquon at dev.catalyst.perl.org
Wed Aug 20 19:25:21 BST 2008


Author: zarquon
Date: 2008-08-20 19:25:20 +0100 (Wed, 20 Aug 2008)
New Revision: 8235

Modified:
   /
   Catalyst-Runtime/5.70/trunk/lib/Catalyst/Response.pm
Log:
 r13745 at harold:  kd | 2008-08-20 19:24:42 +0100
 improvements to redirect doc



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13742
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
   + 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13745
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909

Modified: Catalyst-Runtime/5.70/trunk/lib/Catalyst/Response.pm
===================================================================
--- Catalyst-Runtime/5.70/trunk/lib/Catalyst/Response.pm	2008-08-20 17:44:12 UTC (rev 8234)
+++ Catalyst-Runtime/5.70/trunk/lib/Catalyst/Response.pm	2008-08-20 18:25:20 UTC (rev 8235)
@@ -112,6 +112,11 @@
     $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 {




More information about the Catalyst-commits mailing list