mod_proxy_http: Add detach_backend hook.

The immediate use is for a SSL-related module which works
on the backend proxy connection to be able to "leak" information
into the client r for logging.

This could be useful with other proxy scheme handlers.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1586719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2014-04-11 17:07:18 +00:00
parent 2cd0b69c2d
commit 5512fa1b86
5 changed files with 31 additions and 1 deletions

View File

@ -512,6 +512,15 @@ APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, canon_handler, (request_rec *r,
APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, create_req, (request_rec *r, request_rec *pr))
APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, fixups, (request_rec *r))
/**
* Let modules perform processing when the connection to the origin is being
* detached from the request.
* @param r The client request
* @param backend The proxy representation of the backend connection
*/
APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, detach_backend, (request_rec *r,
proxy_conn_rec *backend))
/**
* pre request hook.
* It will return the most suitable worker at the moment