Cataly...::Index(3pm)
π Catalyst::DispatchType::Index π
okay bestie, so this page is Catalyst::DispatchType::Index, part of the Catalyst family of Perl docs (the User Contributed Perl Documentation corner of the manual, iykyk) β¨
NAME π
Catalyst::DispatchType::Index β the Index DispatchType. that's it, that's the name, she's serving exactly what it says on the tin π
SYNOPSIS β¨
not me having zero synopsis of my own β go look at the main character:
See Catalyst::DispatchType.
DESCRIPTION π¦
so this DispatchType is the one handling all the behaviour for index pages. she's the vibe manager for your / route, basically π
and if you're new to dispatch types as a whole and wanna know how they work, the lore lives here:
Catalyst::Manual::Introβ read this one if you're an application author and you wanna know how dispatch types actually affect you and your app π«ΆCatalyst::DispatchTypeβ read this one for the implementation tea, like how it all works under the hood π§
METHODS πΈ
$self->match( $c, $path )
she checks whether there's an index action for a given path, and if there is, she sets it up to use that action. super chill. but here's the catch bestie:
it only matches a full URI. and if $c->req->args is already set, this DispatchType is guaranteed not to match. no cap, zero chance, it's not happening π
$self->register( $c, $action )
registers an action with this DispatchType. that's the whole job. she clocks in, she registers, she leaves β¨
$self->uri_for_action( $action, $captures )
grabs a URI part for an action. but the way that $captures ruins everything π β if $captures is set, this one always returns undef, because index actions simply don't have captures. no captures, no URI part, periodt π
AUTHORS π«Ά
Catalyst Contributors, see Catalyst.pm β it takes a village, and the village is iconic π
COPYRIGHT π
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. free as in freedom, slay π
and that's the whole page bestie!! this lil beauty came from perl v5.40.0, dated 2024-11-15, and it lives in the User Contributed Perl Documentation section of the manual π go forth and dispatch your index pages, mwah π§ββοΈβ
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-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