NAME

ASP4::Mock::Pool - Mimics the $r->pool APR::Pool object

SYNOPSIS

my $pool = $r->pool;
$pool->cleanup_register( sub { ... }, \@args );

DESCRIPTION

This package mimics the APR::Pool object obtained via $r->pool in a normal mod_perl2 environment.

PUBLIC METHODS

cleanup_register( sub { ... }, \@args )

Causes the subref to be executed with \@args at the end of the current request.

BUGS

It's possible that some bugs have found their way into this release.

Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=ASP4 to submit bug reports.

HOMEPAGE

Please visit the ASP4 homepage at http://0x31337.org/code/ to see examples of ASP4 in action.