Apache-Handlers
view release on metacpan or search on metacpan
PerlHeaderParserHandler
PerlLogHandler
PerlPostReadRequestHandler
PerlRestartHandler
PerlTransHandler
PerlTypeHandler
Other Methods
dump
This will dump the current set of code references and return the
string. This uses Data::Dumper.
reset
This will clear out all previously set code. This should only be
used in the "startup.pl" or equivalent so that code doesn't get run
twice during a request (when it should only be run once). This will
also run any RESET blocks that have been defined.
run_phase
Given a list of phases (using the names for the block constructs
above), this will run through the code for that phase, "die"ing
way of doing something useful. I'm sure there are some. Please let me
know when you find them.
Security
There is no way (currently) to limit registration of code for later
processing during a particular phase. Ideas are welcome for how this
should be designed.
SEE ALSO
the Apache manpage, the Attribute::Handlers manpage, the Data::Dumper
manpage.
AUTHOR
James G. Smith <jsmith@cpan.org>
COPYRIGHT
Copyright (C) 2002 Texas A&M University. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
lib/Apache/Handlers.pm view on Meta::CPAN
Apache::ModuleConfig -> has_srv_config;
} if $has_mod_perl;
$VERSION = "0.02";
@ISA = qw!Exporter!;
my %code = ( );
sub dump {
eval {
use Data::Dumper;
return Data::Dumper -> Dump([\%code]);
};
}
my %phases = qw:
CHILDINIT PerlChildInitHandler
POSTREADREQUEST PerlPostReadRequestHandler
CHILDEXIT PerlChildExitHandler
CLEANUP PerlCleanupHandler
LOG PerlLogHandler
CONTENT PerlHandler
lib/Apache/Handlers.pm view on Meta::CPAN
=head2 Other Methods
=over 4
=item dump
This will dump the current set of code references and return the string.
This uses L<Data::Dumper|Data::Dumper>.
=item reset
This will clear out all previously set code. This should only be used in
the C<startup.pl> or equivalent so that code doesn't get run twice during a
request (when it should only be run once). This will also run any RESET
blocks that have been defined.
=item run_phase
lib/Apache/Handlers.pm view on Meta::CPAN
=head2 Security
There is no way (currently) to limit registration of code for later
processing during a particular phase. Ideas are welcome for how this
should be designed.
=head1 SEE ALSO
L<Apache>,
L<Attribute::Handlers>,
L<Data::Dumper>.
=head1 AUTHOR
James G. Smith <jsmith@cpan.org>
=head1 COPYRIGHT
Copyright (C) 2002 Texas A&M University. All Rights Reserved.
This module is free software; you can redistribute it and/or
( run in 0.238 second using v1.01-cache-2.11-cpan-4d50c553e7e )