X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=04b7338a626f3a915d49681aec03450d88ec7a0b;hb=06e1b6164a2c9d7b463f358b0d1934ef83a82845;hp=22516e1f084f680d1ebe46681c3134ef7b8e8ef3;hpb=146554c575f7f9fda102985196e0b6b364847bc0;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 22516e1..04b7338 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -4,8 +4,8 @@ use strict; use base 'Class::Accessor::Fast'; __PACKAGE__->mk_accessors( - qw/action address arguments base cookies headers hostname match method - parameters path snippets uploads/ + qw/action address arguments base cookies headers input hostname match + method parameters path snippets uploads/ ); *args = \&arguments; @@ -48,6 +48,7 @@ Catalyst::Request - Catalyst Request Class $req->args; $req->arguments; $req->base; + $req->body; $req->content_encoding; $req->content_length; $req->content_type; @@ -55,6 +56,7 @@ Catalyst::Request - Catalyst Request Class $req->header; $req->headers; $req->hostname; + $req->input; $req->match; $req->method; $req->param; @@ -106,6 +108,10 @@ Returns a reference to an array containing the arguments. Contains the url base. This will always have a trailing slash. +=item $req->body + +Shortcut for $req->input. + =item $req->content_encoding Shortcut to $req->headers->content_encoding @@ -140,6 +146,13 @@ Contains the hostname of the remote user. print $c->request->hostname +=item $req->input + +Contains the message body of the request unless Content-Type is +C or C. + + print $c->request->input + =item $req->match This contains be the matching part of a regexp action. otherwise it