diff options
Diffstat (limited to 'docs/manual/developer/hooks.html.en')
-rw-r--r-- | docs/manual/developer/hooks.html.en | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/manual/developer/hooks.html.en b/docs/manual/developer/hooks.html.en index 3f7c8411..d8a33350 100644 --- a/docs/manual/developer/hooks.html.en +++ b/docs/manual/developer/hooks.html.en @@ -31,15 +31,15 @@ date.</p> </div> - <p>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 + <p>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.</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#corehooks">Core Hooks</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#create">Creating a hook function</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#hooking">Hooking the hook</a></li> -</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> +</ul><h3>See also</h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="corehooks" id="corehooks">Core Hooks</a></h2> @@ -123,7 +123,7 @@ <p>The first hook that does <em>not</em> return <code>DECLINED</code> stops the loop and its return value is returned from the hook - caller. Note that <code>DECLINED</code> is the traditional + caller. Note that <code>DECLINED</code> is the traditional hook return value meaning "I didn't do anything", but it can be whatever suits you.</p> @@ -162,7 +162,7 @@ ret=ap_run_do_something(r, n);</pre> <p>Include the appropriate header, and define a static function of the correct type:</p> - <pre class="prettyprint lang-c">static int my_something_doer(request_rec *r, int n)<br /> + <pre class="prettyprint lang-c">static int my_something_doer(request_rec *r, int n) { ... return OK; @@ -202,7 +202,7 @@ mode MODULE_VAR_EXPORT my_module = order relative to each other, but, of course, all modules using <code>APR_HOOK_FIRST</code> will be run before <code>APR_HOOK_MIDDLE</code> which are before <code>APR_HOOK_LAST</code>. Modules that don't care - when they are run should use <code>APR_HOOK_MIDDLE</code>. <em>These + when they are run should use <code>APR_HOOK_MIDDLE</code>. <em>These values are spaced out, so that positions like <code>APR_HOOK_FIRST-2</code> are possible to hook slightly earlier than other functions.</em></p> |