See a Japanese summary of the Apache hook function at a glance, I think for the Apache module development of children's shoes is very useful, and moved over.
Important content of this chapter: the call order of hooks is called the Order of invocation: "Initial initialization", "process", "connection", "request" about Run_all,run_first Run_first type of hook is: The return value of the called hook function is OK or decline (error), the back hook is not executed.
The Run_all type of hook is: when the return value of the called hook function is not decline (error), the loaded hook will be executed all. The parameters of the registration function ap_hook_xxx () are all the same for the parameters ap_hook_xxx (). Please refer to below for details.
Index
Initial set-up of settings |
Run_all |
Ap_hook_pre_config () |
Run_all |
Ap_hook_open_logs () |
Run_all |
Ap_hook_post_config () |
VOID |
Ap_hook_optional_fn_retrieve () |
Process initialization |
Run_all |
AP_HOOK_PRE_MPM () |
VOID |
Ap_hook_child_init () |
Connection |
Run_first |
Ap_hook_create_connection () |
Run_all |
Ap_hook_pre_connection () |
Run_first |
Ap_hook_process_connection () |
Requests (Request) |
Run_all |
Ap_hook_create_request () |
Run_all |
Ap_hook_post_read_request () |
Run_first |
Ap_hook_quick_handler () |
Run_first |
Ap_hook_translate_name () |
Run_first |
Ap_hook_map_to_storage () |
Run_all |
Ap_hook_header_parser () |
Run_all |
Ap_hook_access_checker () |
|