Apache...equest(3pm)
π Apache::Singleton::Request β the manual, but make it cute π
okay bestie, so this page lives in the User Contributed Perl Documentation section (that's the 3pm part of Apache::Singleton::Request(3pm), iykyk), and it's literally the whole lore on getting one instance per One Request. yes. one. per. request. we're so back. π¦
β¨ NAME β¨
Apache::Singleton::Request β One instance per One Request π
πΈ VERSION πΈ
version 0.17 (yes, it's giving vintage, we respect it)
π«Ά SYNOPSIS π«Ά
okay so here's the whole vibe, copy-paste energy:
# in httpd.conf
PerlOptions +GlobalRequest
# in your module (e.g.: Printer.pm)
package Printer;
use base qw(Apache::Singleton::Request);
that's it. that's the whole ritual. PerlOptions +GlobalRequest goes in your httpd.conf, and then your module (the example uses Printer.pm) just does package Printer; and use base qw(Apache::Singleton::Request); and boom, you're inheriting the whole thing. π
π§ DESCRIPTION π§
lowkey there's nothing extra here β it says:
See Apache::Singleton.
that's the actual move. go read that one, bestie, this page is just the spin-off. β¨
π SEE ALSO π
Apache::Singletonβ the main character, the source of all truth π
π₯ SOURCE π₯
the development version is living its best life on github, at <https://github.com/mschout/apache-singleton>, and you can clone it from <git://github.com/mschout/apache-singleton.git> β go be nosy, it's allowed π
π BUGS π
found a bug? want a feature? not me asking you to please report it π send it to bug-apache-singleton@rt.cpan.org or slide through the web interface at: <http://rt.cpan.org/Public/Dist/Display.html?Name=Apache-Singleton>
they want to know. fr fr.
π AUTHOR π
Michael Schout <mschout@cpan.org> β the icon, the legend, the moment β
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2009 by Michael Schout.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie!! this was rendered by perl v5.34.0 on 2022-06-06, so yeah β go forth, one instance per One Request, slay, periodt πβ¨
π¦ where this page comes from
- debian bookworm: libapache-singleton-perl 0.17-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libapache-singleton-perl 0.17-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libapache-singleton-perl 0.17-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapache-singleton-perl 0.17-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-singleton-perl 0.17-2 Β· 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