MCPcopy Create free account
hub / github.com/apache/httpd / x_register_hooks

Function x_register_hooks

modules/examples/mod_example_hooks.c:1465–1508  ·  view source on GitHub ↗

--------------------------------------------------------------------------*/ / Which functions are responsible for which hooks in the server. */ / --------------------------------------------------------------------------*/ * Each function our module provides to handle a particular hook is * specified here. The functions are registered using * ap_hook_foo(name, predecessors, successor

Source from the content-addressed store, hash-verified

1463 * a hook; see the handler declarations below.
1464 */
1465static void x_register_hooks(apr_pool_t *p)
1466{
1467 trace = NULL;
1468 ap_hook_pre_config(x_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
1469 ap_hook_check_config(x_check_config, NULL, NULL, APR_HOOK_MIDDLE);
1470 ap_hook_test_config(x_test_config, NULL, NULL, APR_HOOK_MIDDLE);
1471 ap_hook_open_logs(x_open_logs, NULL, NULL, APR_HOOK_MIDDLE);
1472 ap_hook_post_config(x_post_config, NULL, NULL, APR_HOOK_MIDDLE);
1473 ap_hook_child_init(x_child_init, NULL, NULL, APR_HOOK_MIDDLE);
1474 ap_hook_handler(x_handler, NULL, NULL, APR_HOOK_MIDDLE);
1475 ap_hook_quick_handler(x_quick_handler, NULL, NULL, APR_HOOK_MIDDLE);
1476 ap_hook_pre_connection(x_pre_connection, NULL, NULL, APR_HOOK_MIDDLE);
1477 ap_hook_process_connection(x_process_connection, NULL, NULL, APR_HOOK_MIDDLE);
1478 ap_hook_pre_read_request(x_pre_read_request, NULL, NULL,
1479 APR_HOOK_MIDDLE);
1480 /* [1] post read_request handling */
1481 ap_hook_post_read_request(x_post_read_request, NULL, NULL,
1482 APR_HOOK_MIDDLE);
1483 ap_hook_log_transaction(x_log_transaction, NULL, NULL, APR_HOOK_MIDDLE);
1484 ap_hook_http_scheme(x_http_scheme, NULL, NULL, APR_HOOK_MIDDLE);
1485 ap_hook_default_port(x_default_port, NULL, NULL, APR_HOOK_MIDDLE);
1486 ap_hook_pre_translate_name(x_pre_translate_name, NULL, NULL, APR_HOOK_MIDDLE);
1487 ap_hook_translate_name(x_translate_name, NULL, NULL, APR_HOOK_MIDDLE);
1488 ap_hook_map_to_storage(x_map_to_storage, NULL,NULL, APR_HOOK_MIDDLE);
1489 ap_hook_header_parser(x_header_parser, NULL, NULL, APR_HOOK_MIDDLE);
1490 ap_hook_fixups(x_fixups, NULL, NULL, APR_HOOK_MIDDLE);
1491 ap_hook_type_checker(x_type_checker, NULL, NULL, APR_HOOK_MIDDLE);
1492 ap_hook_check_access(x_check_access, NULL, NULL, APR_HOOK_MIDDLE,
1493 AP_AUTH_INTERNAL_PER_CONF);
1494 ap_hook_check_authn(x_check_authn, NULL, NULL, APR_HOOK_MIDDLE,
1495 AP_AUTH_INTERNAL_PER_CONF);
1496 ap_hook_check_authz(x_check_authz, NULL, NULL, APR_HOOK_MIDDLE,
1497 AP_AUTH_INTERNAL_PER_CONF);
1498 ap_hook_insert_filter(x_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
1499 ap_hook_insert_error_filter(x_insert_error_filter, NULL, NULL, APR_HOOK_MIDDLE);
1500#ifdef HAVE_UNIX_SUEXEC
1501 ap_hook_get_suexec_identity(x_get_suexec_identity, NULL, NULL, APR_HOOK_MIDDLE);
1502#endif
1503 ap_hook_create_connection(x_create_connection, NULL, NULL, APR_HOOK_MIDDLE);
1504 ap_hook_get_mgmt_items(x_get_mgmt_items, NULL, NULL, APR_HOOK_MIDDLE);
1505 ap_hook_create_request(x_create_request, NULL, NULL, APR_HOOK_MIDDLE);
1506 ap_hook_pre_mpm(x_pre_mpm, NULL, NULL, APR_HOOK_MIDDLE);
1507 ap_hook_monitor(x_monitor, NULL, NULL, APR_HOOK_MIDDLE);
1508}
1509
1510/*--------------------------------------------------------------------------*/
1511/* */

Callers

nothing calls this directly

Calls 3

ap_hook_check_accessFunction · 0.85
ap_hook_check_authnFunction · 0.85
ap_hook_check_authzFunction · 0.85

Tested by

no test coverage detected