Cataly...t::REST(3pm)
π NAME π
Catalyst::Request::REST β bestie, it's a REST-y subclass of Catalyst::Request β¨
(Yes, it lives in section 3pm of the Perl manual. We love a documented queen π)
πΈ SYNOPSIS πΈ
if ( $c->request->accepts('application/json') ) {
...
}
my $types = $c->request->accepted_content_types();
π¦ DESCRIPTION π¦
Okay so picture this: it's a subclass of Catalyst::Request that slaps the Catalyst::TraitFor::Request::REST role onto your request class. That trait adds a couple of methods to the request object so you can write your REST-y code without suffering ππ
Big sis energy note though β this class is only here for backwards compatibility with apps that already subclass this class. If you're writing new code? New code should use Catalyst::TraitFor::Request::REST directly. No cap, that's the move π«Ά
Also, Catalyst::Action::REST and Catalyst::Controller::REST will arrange for the request trait to be applied if needed β so they've got you, they handle it β¨
π SEE ALSO π
Catalyst::TraitFor::Request::RESTβ go read that one too, fr fr π
π AUTHORS π
See Catalyst::Action::REST for authors. (They ate with this one, honestly π₯)
π LICENSE π
You may distribute this code under the same terms as Perl itself. π§
and that's the whole page, bestie!! π This little guy came to you courtesy of perl v5.40.1, dated 2026-05-07, in the Catalyst::Request::REST(3pm) manual. mwah π
π¦ where this page comes from
- ubuntu stonking: libcatalyst-action-rest-perl 1.22-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms