Sympa::Request(3Sympa)
π Sympa::Request π
ok so bestie, welcome to Sympa::Request from the sympa manual, section 3. it's literally the whole vibe of "requests for operation" and i'm obsessed π
β¨ NAME β¨
Sympa::Request β Requests for operation π
πΈ SYNOPSIS πΈ
use Sympa::Request;
my $request = Sympa::Request->new($serialized, context => $list);
my $request = Sympa::Request->new(context => $list, action => 'last');
like. look at her. two whole ways to make a request object and she's thriving π¦
π DESCRIPTION π
Sympa::Request implements a serializable object representing requests by users. that's the whole assignment and she ATE π₯
π§ Methods
new ( [ $serialized, ] context => $that, action => $action, key => value, ... ] )
Constructor bestie!! π«Ά makes you a brand new Sympa::Request object, no cap.
Parameters:
$serializedβ the serialized request, yeah that one.context => objectβ the context, girlie. can be aSympa::Listobject, a Robot, or'*'.action => $actionβ the name of the requested action, periodt.key => value, ...β metadata and attributes. all of them. bring snacks.
Returns:
a new instance of Sympa::Request π, or undef if something went wrong π (it happens, we don't talk about it).
new_from_tuples ( key => value, ... )
Constructor. β οΈ OBSOLETED. β οΈ creates a Sympa::Request object from paired options. she's retired, respect her legacy though π
dup ( )
Copy constructor π gets you a deep copy of the instance. not a shallow one. a DEEP one. we love a thorough queen.
to_string ( )
Serializer β¨ returns the serialized data of the object. that's it, that's the job.
cmd_line ( [ canonic => 1 ] )
Instance method. TBD. (the devs said "we'll get to it" and honestly? same.)
handler ( )
Instance method π the name of a subclass of Sympa::Request::Handler that processes the request.
get_id ( )
Instance method π gets the unique identifier of the instance. her little name tag. iconic.
π Context and metadata
so the context and metadata you hand to the constructor are accessible as hash elements of the object. they're given by the request spool. for the deets, go look at "Context and metadata" in Sympa::Spool::Auth β she has the full breakdown, iykyk.
π Attributes
these are accessible as hash elements of objects, and there are attributes including:
{custom_attribute}β custom attribute connected to the requested action πΈ{gecos}β display name of the user sending the request β¨{sender}β e-mail of the user who sent the request π§
π¦ Serialization
a Sympa::Request object includes a number of slots as hash items: metadata, context and attributes. metadata including context is given by the spool β check "Marshaling and unmarshaling metadata" in Sympa::Spool for the tea.
logically, objects are stored into a physical spool as serialized form, and deserialized when they get fetched from the spool π. attributes are encoded in X-Sympa-*: pseudo-header fields. yes, the weird header thing. it's giving mysterious.
also see "Serialization" in Sympa::Message for an example, bestie π
π SEE ALSO π
Sympa::Request::CollectionSympa::Request::HandlerSympa::Request::MessageSympa::Spool::Auth
π HISTORY π
Sympa::Request appeared on Sympa 6.2.10. a legend from day one π«Ά
ok that's the whole page, you're welcome π this was Sympa::Request(3Sympa) from the sympa 6.2.80 manual, dated 2026-10-19. go forth and serialize responsibly, bestie πβπ
π¦ 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