]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
This patch adds a new hook (request_status) that gets ran in proxy_handler
authorIan Holsman <ianh@apache.org>
Sun, 17 Jul 2005 05:12:10 +0000 (05:12 +0000)
committerIan Holsman <ianh@apache.org>
Sun, 17 Jul 2005 05:12:10 +0000 (05:12 +0000)
commit9ffe8c5d1af6ca566b8c26b78ba448ce3504def9
tree7aba35b7ee9d473b74dd0dd157012fce1cbaf48c
parent63fc1b1f0a4eeab054af5a41ee98472eead578d1
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
CHANGES
include/ap_mmn.h
modules/proxy/mod_proxy.c
modules/proxy/mod_proxy.h