package
TestApachePeek::basic;
use
strict;
use
mod_perl;
BEGIN {
if
(MP2) {
Apache::Const->
import
(
-compile
=>
'OK'
);
}
else
{
Apache::Constants->
import
(
'OK'
);
}
}
use
Apache::Peek;
sub
handler {
my
$r
=
shift
;
$r
->content_type(
'text/plain'
);
$r
->send_http_header()
unless
MP2;
Apache::Peek::Dump(\
&Apache::Const::OK
);
return
MP2 ? Apache::OK : Apache::Constants::OK;
}
1;
__END__
SetHandler perl-script