Apache...equest(3pm)

πŸ“¦
version 0.17 Β· 2 versions
  • 0.17 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.17 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 ⭐

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