logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

APR::Request::Magic - Portable API for working with CGI and modperl scripting

Apr::Request::Magic

handle
           APR::Request::Magic->handle()

       Creates a new APR::Request::Magic object.

   $MODE
       Global variable set to the operation mode of this module: either "CGI" or "Apache2".

Description

       The APR::Request::Magic module provides a cgi/mod_perl portable interface to libapreq2.  It is a subclass
       of APR::Request so all of its methods are available.

Name

       APR::Request::Magic - Portable API for working with CGI and modperl scripting

See Also

       APR::Request, APR::Request::CGI, APR::Request::Apache2.

Synopsis

           # Be sure PerlOptions +GlobalRequest is set for mp2.

           use APR::Request::Magic;
           $apreq = APR::Request::Magic->handle;
           @foo   = $apreq->body("foo");
           $bar   = $apreq->args("bar");
           $c     = $apreq->jar("cookiename");

See Also