Normalize all paths to run the same, common code for pre-request setup

from the primary request, redirects and sub-requests.

  This will significantly reduce opporunities for inconsistancy (such
  as Ian observed, and as I repaired only a month ago.)

  This promotes process_request_internal to an ap_ namespace protected
  entity in server/request.c (from it's old home in http/http_request.c)
  since this fn has no http specifics.

Reviewed (in concept): Cliff Woolley, Ian Holsman


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2001-08-31 01:38:06 +00:00
parent 7cec5457d7
commit 3db323656f
2 changed files with 30 additions and 136 deletions

View File

@ -91,6 +91,14 @@ extern "C" {
* about which was allocated in its apr_pool_t elsewhere before doing this.
*/
/**
* An internal handler used by the ap_process_request, all sub request mechanisms
* and the redirect mechanism.
* @param r The request, subrequest or internal redirect to pre-process
* @return The return code for the request
*/
AP_DECLARE(int) ap_process_request_internal(request_rec *r);
/**
* Create a sub request from the given URI. This sub request can be
* inspected to find information about the requested URI