libapa...terRec(3pm)

πŸ’– NAME πŸ’–

Apache2::FilterRec β€” it's the Perl API for poking at the Apache filter record, bestie ✨


πŸ“œ Synopsis πŸ“œ

use Apache2::Filter ();
use Apache2::FilterRec ();

my $frec = $filter->frec;
print "filter name is:", $frec->name;

🌸 Description 🌸

So Apache2::FilterRec literally hands you a lil doorway into the filter record structure. That's the whole vibe. πŸ¦‹

You don't make one yourself β€” you get the Apache2::FilterRec object by calling frec(), like this:

$frec = $filter->frec;

✨ API ✨

Apache2::FilterRec gives you these functions and/or methods, okurrr πŸ‘‘


πŸ’… "name" πŸ’…

The registered name for this filter. Like, its government name. πŸͺͺ

$name = $frec->name();
  • obj: $frec ( Apache2::FilterRec object )
  • ret: $name (string)
  • since: 2.0.00

mod_perl filters have four names, no more no less:

modperl_request_output
modperl_request_input
modperl_connection_output
modperl_connection_input

And the tea is: you can see the names of the non-mod_perl filters too πŸ‘€. Just call $filter->next->frec->name and boom, you've got the name of the next filter in the chain. Slay.

Example:

Let's print the name of the current filter and the filter that follows it, because we're thorough like that πŸ’β€β™€οΈ

use Apache2::Filter ();
use Apache2::FilterRec ();
for my $frec ($filter->frec, $filter->next->frec) {
    print "Name: ", $frec->name;
}

πŸ‘€ See Also πŸ‘€

mod_perl 2.0 documentation. Go read it, it's giving ✨ required reading ✨.


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. Iconic behavior, honestly. πŸ‘‘


okay that's the whole page bestie, you ate it up πŸ“ β€” this was libapa...terRec(3pm) from the User Contributed Perl Documentation, generated by perl v5.42.3 on 2026-08-20. mwah πŸ’‹

πŸ“¦ where this page comes from