Added subrequest and subrequest_response names aliased to sub_request and sub_request...
[catagits/Catalyst-Plugin-SubRequest.git] / lib / Catalyst / Plugin / SubRequest.pm
index 803fef0..65aec7e 100644 (file)
@@ -44,6 +44,8 @@ response (L<Catalyst::Response>) 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<sub_request()>, but returns a full L<Catalyst::Response> object.
@@ -70,7 +74,9 @@ Like C<sub_request()>, but returns a full L<Catalyst::Response> 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 ;