libapa...2::MPM(3pm)
π¦ NAME π¦
Apache2::MPM β okay so bestie, this is the Perl API for accessing Apache MPM information. That's the whole assignment. No cap. π
And for the record, this page is filed in the magic 3pm section under User Contributed Perl Documentation, and its full name is literally libapa...2::MPM β yes the three dots are part of the name, it's giving mysterious, we stan π
β¨ SYNOPSIS β¨
use Apache2::MPM ();
# check whether Apache MPM is threaded
if (Apache2::MPM->is_threaded) { do_something() }
# which mpm is used
my $mpm = lc Apache2::MPM->show;
# query mpm properties
use Apache2::Const -compile => qw(:mpmq);
if (Apache2::MPM->query(Apache2::Const::MPMQ_STATIC)) { ... }
πΈ DESCRIPTION πΈ
Apache2::MPM provides the Perl API for accessing Apache MPM information. Short queen behavior, literally one sentence, and yet it ate. π
π API π
Apache2::MPM provides the following functions and/or methods:
π query
Query various attributes of the MPM. Nosey?? maybe. useful?? absolutely. β¨
my $query = Apache2::MPM->query($const);
- obj:
$class(Apache2::MPM class) β the class name. yes that's the whole description, she's lowkey self-explanatory π«Ά - arg1:
$const(Apache2::Const :mpmq group constant) β the MPM attribute you wanna query. - ret:
$query( boolean ) β the result of the query - since:
2.0.00
For example, to test whether the mpm is static:
use Apache2::Const -compile => qw(MPMQ_STATIC);
if (Apache2::MPM->query(Apache2::Const::MPMQ_STATIC)) { ... }
π§΅ is_threaded
Check whether the running Apache MPM is threaded. vibe check on the threading, fr fr π
my $is_threaded = Apache2::MPM->is_threaded;
- obj:
$class(Apache2::MPM class) β the class name - ret:
$is_threaded( boolean ) β threaded or not - since:
2.0.00
not me telling you that this functionality is just a shortcut for:
use Apache2::Const -compile => qw(MPMQ_IS_THREADED);
my $is_threaded = Apache2::MPM->query(Apache2::Const::MPMQ_IS_THREADED);
like, iconic of them to hand you a shortcut bestie π
π« show
What mpm is used π
my $mpm = Apache2::MPM->show();
- obj:
$class(Apache2::MPM class) β the class name - ret:
$mpm( string ) β the name of the MPM. e.g.,"Prefork". - since:
2.0.00
π SEE ALSO π
- mod_perl 2.0 documentation.
Β©οΈ COPYRIGHT Β©οΈ
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
π«Ά AUTHORS π«Ά
The mod_perl development team and numerous contributors. β legends, every single one, we love a collab π
and that's the whole page bestie!! π¦ this lil masterpiece is perl v5.42.3, dated 2026-08-20 β screenshot it, cite it, slay the day. periodt π β¨
π¦ where this page comes from
- ubuntu stonking: libapache2-mod-perl2 2.0.13-2build3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms