Sympa::Request::Handler(3Sympa)
π Sympa::Request::Handler π
okay so bestie, welcome to Sympa::Request::Handler(3Sympa) β yes that's the manual section, we're in the 3Sympa girlies π
β this is the base class energy, the mother of all request handler classes. sit down, hydrate, let's go π
β¨ NAME β¨
Sympa::Request::Handler β the base class of request handler classes. it's giving blueprint, it's giving "everybody else inherits from me" π
π¦ SYNOPSIS π¦
here's the vibe, copy-paste blessed:
package Sympa::Request::Handler::foo;
use base qw(Sympa::Request::Handler);
use constant _action_regexp => qr{reject|request_auth|do_it}i;
use constant _action_scenario => 'review';
use constant _context_class => 'Sympa::List';
sub _twist {
...
}
1;
literally that's it. that's the whole starter pack πΈ
π DESCRIPTION π
so Sympa::Request::Handler is the base class β meaning all its subclasses are the ones doing the actual work of processing an instance of Sympa::Request. it's the parent, the blueprint, the "you shall not pass unless you inherit from me" of it all. no cap π
π Methods π
TBD.
(yeah bestie, it really just says TBD. the docs said "we'll get to it" and then never got to it. iconic honestly π)
π§ Methods subclass should implement π§
these are the ones YOU gotta write. the homework. the assignments. the main character duties π
_action_regexp ( )β instance method, and it's mandatory if_action_scenario()returns a true value. it returns a regexp that matches the available scenario results. and listen β theimodifier is necessary, no skipping it, periodt._action_scenario ( )β instance method, mandatory, no exceptions. it returns the name of the scenario used to authorize the request under the given context. and if authorization isn't required? it returnsundef. that's the escape hatch, slay._context_class ( )β instance method. returns the class name of the context under which the request will be executed β likeSympa::Listetc. but by default? it returns the robot context. just so you know π«Ά_owner_action ( )β instance method. returns the name of the action to be stored in spool when the scenario returns"owner". default is"undef"β nothing, nada, the void β¨_twist ( $request )β instance method, mandatory, the big one. see"_twist" in Sympa::Spindlefor the deets.
π SEE ALSO π
go bother these when you're done here, they're all connected fr fr:
Sympa::RequestSympa::Spindle
π HISTORY π
Sympa::Request::Handler appeared on Sympa 6.2.15. she's been around. she's seen things. a legend π
and that's the whole page bestie!! this was pulled fresh outta sympa 6.2.80, dated 2026-10-19 β so yeah, shoutout to the source + version + date for keeping it real, and shoutout to you for reading all the way through π mwah, go implement those mandatory methods, i believe in you π¦β¨π
π¦ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms