From: Christophe Jaillet
In general, a hook function is one that the Apache HTTP Server - will call at some point during the processing of a request. - Modules can provide functions that are called, and specify when +
In general, a hook function is one that the Apache HTTP Server + will call at some point during the processing of a request. + Modules can provide functions that are called, and specify when they get called in comparison to other modules.
@@ -123,7 +123,7 @@ void ap_run_do_something(request_rec *r, int n)The first hook that does not return DECLINED
stops the loop and its return value is returned from the hook
- caller. Note that DECLINED
is the traditional
+ caller. Note that DECLINED
is the traditional
hook return value meaning "I didn't do anything", but it can be
whatever suits you.
APR_HOOK_FIRST
will be run before APR_HOOK_MIDDLE
which are before APR_HOOK_LAST
. Modules that don't care
- when they are run should use APR_HOOK_MIDDLE
. These
+ when they are run should use APR_HOOK_MIDDLE
. These
values are spaced out, so that positions like APR_HOOK_FIRST-2
are possible to hook slightly earlier than other functions.