X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FSubRequest.pm;fp=lib%2FCatalyst%2FPlugin%2FSubRequest.pm;h=65aec7ec7fe8b8fe0938887cd3873dacee855de1;hb=51589f614f0190c4b5f8c4fb8747cbd3654458ac;hp=803fef08c71444706868ae23b9a439ab0a504cf2;hpb=87c672dbfc58a2557adea6cfb7843c661cffbc61;p=catagits%2FCatalyst-Plugin-SubRequest.git diff --git a/lib/Catalyst/Plugin/SubRequest.pm b/lib/Catalyst/Plugin/SubRequest.pm index 803fef0..65aec7e 100644 --- a/lib/Catalyst/Plugin/SubRequest.pm +++ b/lib/Catalyst/Plugin/SubRequest.pm @@ -44,6 +44,8 @@ response (L) object. =item subreq [path as string or hash ref], [stash as hash ref], [parameters as hash ref] +=item subrequest + =item sub_request Takes a full path to a path you'd like to dispatch to. @@ -61,6 +63,8 @@ Returns the body of the response. =item subreq_res [path as string or hash ref], [stash as hash ref], [parameters as hash ref] +=item subrequest_response + =item sub_request_response Like C, but returns a full L object. @@ -70,7 +74,9 @@ Like C, but returns a full L object. =cut *subreq = \&sub_request; +*subrequest = \&sub_request; *subreq_res = \&sub_request_response; +*subrequest_response = \&sub_request_response; sub sub_request { return shift->sub_request_response( @_ )->body ;