logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catalyst::Request::REST - A REST-y subclass of Catalyst::Request

Authors

       See Catalyst::Action::REST for authors.

Description

       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.

License

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

perl v5.34.0                                       2022-06-09                       Catalyst::Request::REST(3pm)

Name

       Catalyst::Request::REST - A REST-y subclass of Catalyst::Request

See Also

       Catalyst::TraitFor::Request::REST.

Synopsis

            if ( $c->request->accepts('application/json') ) {
                ...
            }

            my $types = $c->request->accepted_content_types();

See Also