タグ

ブックマーク / perl.apache.org (1)

  • mod_perl: HTTP Handlers

    HTTP Request Handler Skeleton All HTTP Request handlers have the following structure: package MyApache2::MyHandlerName; # load modules that are going to be used use ...; # compile (or import) constants use Apache2::Const -compile => qw(OK); sub handler { my $r = shift; # handler code comes here return Apache2::Const::OK; # or another status constant } 1; First, the package is declared. Next, the m

    tsimo
    tsimo 2018/07/03
  • 1