📄 apache2::hookrun.3
字号:
.ie n .Sh """run_access_checker""".el .Sh "\f(CWrun_access_checker\fP".IX Subsection "run_access_checker"Run the resource accesscontrol phase..PP.Vb 1\& $rc = $r\->run_access_checker();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"the current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase runs before a user is authenticated, so this hook is reallyto apply additional restrictions independent of a user. It also runsindependent of '\f(CW\*(C`Require\*(C'\fR' directive usage..ie n .Sh """run_auth_checker""".el .Sh "\f(CWrun_auth_checker\fP".IX Subsection "run_auth_checker"Run theauthenticationphase..PP.Vb 1\& $rc = $r\->run_auth_checker();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"the current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase is used to check to see if the resource being requested isavailable for the authenticated user (\f(CW\*(C`$r\->user\*(C'\fR and\&\f(CW\*(C`$r\->ap_auth_type\*(C'\fR)..PPIt runs after the access_checker andcheck_user_id hooks..PPNote that it will only be called if Apache determines that accesscontrol has been applied to this resource (through a '\f(CW\*(C`Require\*(C'\fR'directive)..ie n .Sh """run_check_user_id""".el .Sh "\f(CWrun_check_user_id\fP".IX Subsection "run_check_user_id"Run theauthorizationphase..PP.Vb 1\& $rc = $r\->run_check_user_id();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis hook is used to analyze the request headers, authenticate theuser, and set the user information in the request record(\f(CW\*(C`$r\->user\*(C'\fR and \f(CW\*(C`$r\->ap_auth_type\*(C'\fR)..PPThis hook is only run when Apache determines thatauthentication/authorization is required for this resource (asdetermined by the '\f(CW\*(C`Require\*(C'\fR' directive)..PPIt runs after the access_checker hook, andbefore the auth_checker hook..ie n .Sh """run_fixups""".el .Sh "\f(CWrun_fixups\fP".IX Subsection "run_fixups"Run the fixupphase..PP.Vb 1\& $rc = $r\->run_fixups();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase allows modules to perform module-specific fixing of \s-1HTTP\s0header fields. This is invoked just before theresponse phase..ie n .Sh """run_handler""".el .Sh "\f(CWrun_handler\fP".IX Subsection "run_handler"Run theresponse phase..PP.Vb 1\& $rc = $r\->run_handler();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The request_rec.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\&\f(CW\*(C`run_handler()\*(C'\fR is called internally by\&\f(CW\*(C`invoke_handler()\*(C'\fR. Use \f(CW\*(C`run_handler()\*(C'\fR onlyif you want to bypass the extra functionality provided by\&\f(CW\*(C`invoke_handler()\*(C'\fR..ie n .Sh """run_header_parser""".el .Sh "\f(CWrun_header_parser\fP".IX Subsection "run_header_parser"Run the headerparser phase..PP.Vb 1\& $rc = $r\->run_header_parser();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"\&\f(CW\*(C`Apache2::Const::OK\*(C'\fR or \f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".ie n .Sh """run_log_transaction""".el .Sh "\f(CWrun_log_transaction\fP".IX Subsection "run_log_transaction"Run the loggingphase..PP.Vb 1\& $rc = $r\->run_log_transaction();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR.IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis hook allows modules to perform any module-specific loggingactivities over and above the normal server things..ie n .Sh """run_map_to_storage""".el .Sh "\f(CWrun_map_to_storage\fP".IX Subsection "run_map_to_storage"Run themap_to_storagephase..PP.Vb 1\& $rc = $r\->run_map_to_storage();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"\&\f(CW\*(C`Apache2::Const::DONE\*(C'\fR (or \f(CW\*(C`Apache2::HTTP_*\*(C'\fR) if this contextless request wasjust fulfilled (such as \f(CW\*(C`TRACE\*(C'\fR), \f(CW\*(C`Apache2::Const::OK\*(C'\fR if this is not afile, and \f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR if this is a file. The coremap_to_storage (\f(CW\*(C`Apache2::HOOK_RUN_LAST\*(C'\fR) will \f(CW\*(C`directory_walk()\*(C'\fR and\&\f(CW\*(C`file_walk()\*(C'\fR the \f(CW\*(C`$r\->filename\*(C'\fR (all internal C functions)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase allows modules to set the per_dir_config based on their owncontext (such as \f(CW\*(C`<Proxy>\*(C'\fR sections) and responds tocontextless requests such as \f(CW\*(C`TRACE\*(C'\fR that need no security orfilesystem mapping based on the filesystem..ie n .Sh """run_post_read_request""".el .Sh "\f(CWrun_post_read_request\fP".IX Subsection "run_post_read_request"Run thepost_read_requestphase..PP.Vb 1\& $rc = $r\->run_post_read_request();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR or\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase is run right after \f(CW\*(C`read_request()\*(C'\fR or\&\f(CW\*(C`internal_redirect()\*(C'\fR, and not run during any subrequests. This hookallows modules to affect the request immediately after the request hasbeen read, and before any other phases have been processes. Thisallows modules to make decisions based upon the input header fields.ie n .Sh """run_translate_name""".el .Sh "\f(CWrun_translate_name\fP".IX Subsection "run_translate_name"Run the translatephase..PP.Vb 1\& $rc = $r\->run_translate_name();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"The current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase gives modules an opportunity to translate the \s-1URI\s0 into anactual filename. If no modules do anything special, the server'sdefault rules will be applied..ie n .Sh """run_type_checker""".el .Sh "\f(CWrun_type_checker\fP".IX Subsection "run_type_checker"Run thetype_checker phase..PP.Vb 1\& $rc = $r\->run_type_checker();.Ve.ie n .IP "obj: $r\fR ( \f(CW""Apache2::RequestRec object"" )" 4.el .IP "obj: \f(CW$r\fR ( \f(CWApache2::RequestRec object\fR )" 4.IX Item "obj: $r ( Apache2::RequestRec object )"the current request.ie n .IP "ret: $rc ( integer )" 4.el .IP "ret: \f(CW$rc\fR ( integer )" 4.IX Item "ret: $rc ( integer )"The status of the current phase run: \f(CW\*(C`Apache2::Const::OK\*(C'\fR,\&\f(CW\*(C`Apache2::Const::DECLINED\*(C'\fR, \f(CW\*(C`Apache2::HTTP_...\*(C'\fR..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPThis phase is used to determine and/or set the various document typeinformation bits, like \f(CW\*(C`Content\-type\*(C'\fR (via \f(CW\*(C`$r\->content_type\*(C'\fR),language, etc..SH "See Also".IX Header "See Also"mod_perl 2.0 documentation..SH "Copyright".IX Header "Copyright"mod_perl 2.0 and its core modules are copyrighted underThe Apache Software License, Version 2.0..SH "Authors".IX Header "Authors"The mod_perl development team and numerouscontributors.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -