Catalyst::Request::REST(3pm)

Catalyst::Request::REST3pm

A rest-y subclass of catalyst::request

Usage

     if ( $c->request->accepts('application/json') ) {
         ...
     }
     my $types = $c->request->accepted_content_types();

Overview

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.

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12–13

Authors

See Catalyst::Action::REST for authors.

License

You may distribute this code under the same terms as Perl itself.

From libcatalyst-action-rest-perl 1.21-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.