Shortcut to $req->headers->content_type
+=item $req->cookie
+
+A convenient method to $req->cookies.
+
+ $cookie = $c->request->cookie('name');
+ @cookies = $c->request->cookie;
+
+=cut
+
+sub cookie {
+ my $self = shift;
+
+ if ( @_ == 0 ) {
+ return keys %{ $self->cookie };
+ }
+
+ if ( @_ == 1 ) {
+
+ my $name = shift;
+
+ unless ( exists $self->cookie->{$name} ) {
+ return undef;
+ }
+
+ return $self->cookie->{$name};
+ }
+}
+
=item $req->cookies
Returns a reference to a hash containing the cookies.
=item $req->match
-This contains be the matching part of a regexp action. otherwise it
-returns the same as 'action'.
+This contains the matching part of a regexp action. Otherwise
+it returns the same as 'action'.
print $c->request->match;
=item $req->param
-Get request parameters with a CGI.pm like param method.
+Get request parameters with a CGI.pm-compatible param method. This
+is a method for accessing parameters in $c->req->parameters.
$value = $c->request->param('foo');
@values = $c->request->param('foo');