mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +03:00
Declare pre_translate hook in lua/info/log_debug/example modules, and docs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1174,6 +1174,22 @@ static int x_post_read_request(request_rec *r)
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
/*
|
||||
* This routine gives our module an opportunity to translate the URI into an
|
||||
* actual filename, before URL decoding happens.
|
||||
*
|
||||
* This is a RUN_FIRST hook.
|
||||
*/
|
||||
static int x_pre_translate_name(request_rec *r)
|
||||
{
|
||||
/*
|
||||
* We don't actually *do* anything here, except note the fact that we were
|
||||
* called.
|
||||
*/
|
||||
trace_request(r, "x_pre_translate_name()");
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
/*
|
||||
* This routine gives our module an opportunity to translate the URI into an
|
||||
* actual filename. If we don't do anything special, the server's default
|
||||
@@ -1467,6 +1483,7 @@ static void x_register_hooks(apr_pool_t *p)
|
||||
ap_hook_log_transaction(x_log_transaction, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_http_scheme(x_http_scheme, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_default_port(x_default_port, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_pre_translate_name(x_pre_translate_name, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_translate_name(x_translate_name, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_map_to_storage(x_map_to_storage, NULL,NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_header_parser(x_header_parser, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
|
Reference in New Issue
Block a user