Catalyst::Request::REST - A REST-y subclass of Catalyst::Request
if ( $c->request->accepts('application/json') ) { ... } my $types = $c->request->accepted_content_types();
This is a subclass of Catalyst::Request that applies the Catalyst::TraitFor::Request::REST role to your request class. That trait adds a few methods to the request object to facilitate writing REST-y code.
Catalyst::Request
This class is only here for backwards compatibility with applications already subclassing this class. New code should use Catalyst::TraitFor::Request::REST directly.
Catalyst::Action::REST and Catalyst::Controller::REST will arrange for the request trait to be applied if needed.
Catalyst::TraitFor::Request::REST.
See Catalyst::Action::REST for authors.
You may distribute this code under the same terms as Perl itself.
To install Catalyst::Action::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Action::REST
CPAN shell
perl -MCPAN -e shell install Catalyst::Action::REST
For more information on module installation, please visit the detailed CPAN module installation guide.