NAME
Catalyst::Request - Catalyst Request Class
SYNOPSIS
See Catalyst.
DESCRIPTION
The Catalyst Request.
METHODS
action
Contains the action.
print $c->request->action;
arguments (args)
Returns an arrayref containing the arguments.
print $c->request->arguments->[0];
base
Contains the uri base.
cookies
Returns a hashref containing the cookies.
print $c->request->cookies->{mycookie}->value;
headers
Returns a HTTP::Headers object containing the headers.
print $c->request->headers->header('X-Catalyst');
match
Contains the match.
print $c->request->match;
parameters (params)
Returns a hashref containing the parameters.
print $c->request->parameters->{foo};
path
Contains the path.
print $c->request->path;
method
Contains the request method.
print $c->request->method
server_base
Contains the server part of the uri base.
snippets
Returns an arrayref containing regex snippets.
my @snippets = @{ $c->request->snippets };
uploads
Returns a hashref containing the uploads.
my $filename = $c->req->parameters->{foo};
print $c->request->uploads->{$filename}->type;
print $c->request->uploads->{$filename}->size;
my $fh = $c->request->uploads->{$filename}->fh;
my $content = do { local $/; <$fh> };
AUTHOR
Sebastian Riedel, sri@cpan.org
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.