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

Function x_default_port

modules/examples/mod_example_hooks.c:903–910  ·  view source on GitHub ↗

* The runner for this hook is aliased to ap_default_port(), which the * core and other modules call when they need to know the default port * for a particular server. This is used for instance to omit the * port number from a Redirect response Location header URL if the port * number is equal to the default port for the service (like 80 for http). * * This is a RUN_FIRST hook: the first han

Source from the content-addressed store, hash-verified

901 * returns 80.
902 */
903static apr_port_t x_default_port(const request_rec *r)
904{
905 /*
906 * Log the call and exit.
907 */
908 trace_request(r, "x_default_port()");
909 return 0;
910}
911
912/*
913 * This routine is called just before the handler gets invoked. It allows

Callers

nothing calls this directly

Calls 1

trace_requestFunction · 0.85

Tested by

no test coverage detected