1Catalyst::Request::RESTU(s3e)r Contributed Perl DocumentaCtaitoanlyst::Request::REST(3)
2
3
4
6 Catalyst::Request::REST - A REST-y subclass of Catalyst::Request
7
9 if ( $c->request->accepts('application/json') ) {
10 ...
11 }
12
13 my $types = $c->request->accepted_content_types();
14
16 This is a subclass of "Catalyst::Request" that applies the
17 Catalyst::TraitFor::Request::REST role to your request class. That
18 trait adds a few methods to the request object to facilitate writing
19 REST-y code.
20
21 This class is only here for backwards compatibility with applications
22 already subclassing this class. New code should use
23 Catalyst::TraitFor::Request::REST directly.
24
25 Catalyst::Action::REST and Catalyst::Controller::REST will arrange for
26 the request trait to be applied if needed.
27
29 Catalyst::TraitFor::Request::REST.
30
32 See Catalyst::Action::REST for authors.
33
35 You may distribute this code under the same terms as Perl itself.
36
37
38
39perl v5.32.0 2020-07-28 Catalyst::Request::REST(3)