From bfde8a33cde29d3729e42623eb2b86c31e3ce603 Mon Sep 17 00:00:00 2001
From: Daniel Gruno The first hook that does not return Alternatively, all hooks can be run until an error occurs.
@@ -163,7 +163,7 @@
During initialisation, Apache will call each modules hook
+ During initialisation, the server will call each modules hook
registering function, which is included in the module
structure:DECLINED
stops the loop and its return value is returned from the hook
- caller. Note that DECLINED
is the tradition Apache
- hook return meaning "I didn't do anything", but it can be
+ 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
. (I spaced
- these out so people could do stuff like APR_HOOK_FIRST-2
- to get in slightly earlier, but is this wise? - Ben)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.
Note that there are two more values,
APR_HOOK_REALLY_FIRST
and APR_HOOK_REALLY_LAST
. These
diff --git a/docs/manual/developer/request.xml b/docs/manual/developer/request.xml
index 7ff487d7306..dc4f4c3246e 100644
--- a/docs/manual/developer/request.xml
+++ b/docs/manual/developer/request.xml
@@ -23,7 +23,7 @@
Several changes in Apache 2.0 affect the internal request +
Several changes in 2.0 and above affect the internal request processing mechanics. Module authors need to be aware of these changes so they may take advantage of the optimizations and security enhancements.
The first major change is to the subrequest and redirect
mechanisms. There were a number of different code paths in
- Apache 1.3 to attempt to optimize subrequest or redirect
- behavior. As patches were introduced to 2.0, these
+ the Apache HTTP Server 1.3 to attempt to optimize subrequest
+ or redirect behavior. As patches were introduced to 2.0, these
optimizations (and the server behavior) were quickly broken due
to this duplication of code. All duplicate code has been folded
back into ap_process_request_internal()
to prevent
@@ -50,7 +50,7 @@
and correct implementation of the HTTP server RFC. Additional
goals include security, scalability and optimization. New
methods were sought to optimize the server (beyond the
- performance of Apache 1.3) without introducing fragile or
+ performance of 1.3) without introducing fragile or
insecure code.
To streamline requests, the module author can take advantage of the hooks offered to drop out of the request cycle early, or - to bypass core Apache hooks which are irrelevant (and costly in + to bypass core hooks which are irrelevant (and costly in terms of CPU.)
@@ -76,7 +76,7 @@parsed_uri.path
element is unset. The module has no further
control of this one-time unescape operation, either failing to
unescape or multiply unescaping the URL leads to security
- reprecussions.
+ repercussions.