diff options
author | Ian Holsman <ianh@apache.org> | 2005-07-17 07:12:10 +0200 |
---|---|---|
committer | Ian Holsman <ianh@apache.org> | 2005-07-17 07:12:10 +0200 |
commit | 9ffe8c5d1af6ca566b8c26b78ba448ce3504def9 (patch) | |
tree | 7aba35b7ee9d473b74dd0dd157012fce1cbaf48c /include/ap_mmn.h | |
parent | update transformation (diff) | |
download | apache2-9ffe8c5d1af6ca566b8c26b78ba448ce3504def9.tar.xz apache2-9ffe8c5d1af6ca566b8c26b78ba448ce3504def9.zip |
This patch adds a new hook (request_status) that gets ran in proxy_handler
just before the final return. This gives modules an opportunity to do
something based on the proxy status.
A couple of examples where this is useful:
-You are using a caching module and would rather return stale content rather
than an error to the client if the origin is down.
-you proxy some subrequests (using SSI - mod_include) and do not want SSI
errors when the backend is down. If you would normally return
HTTP_BAD_GATEWAY, you may have a module that serves some other content.
new hook -- so mmn bump.. i made it a major one, hope thats ok
Patch From Brian Akins <Brian.Akins turner.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219372 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mmn.h')
-rw-r--r-- | include/ap_mmn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ap_mmn.h b/include/ap_mmn.h index 67f1ef61ab..259ba397f2 100644 --- a/include/ap_mmn.h +++ b/include/ap_mmn.h @@ -99,12 +99,13 @@ * 20050701.0 (2.1.7-dev) Bump MODULE_MAGIC_COOKIE to "AP21"! * 20050701.1 (2.1.7-dev) trace_enable member added to core server_config * 20050708.0 (2.1.7-dev) Bump MODULE_MAGIC_COOKIE to "AP22"! + * 20050717.0 (2.1.7-dev) add proxy request_status hook */ #define MODULE_MAGIC_COOKIE 0x41503232UL /* "AP22" */ #ifndef MODULE_MAGIC_NUMBER_MAJOR -#define MODULE_MAGIC_NUMBER_MAJOR 20050708 +#define MODULE_MAGIC_NUMBER_MAJOR 20050717 #endif #define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */ |