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

Function ap_construct_url

server/core.c:1246–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1244}
1245
1246AP_DECLARE(char *) ap_construct_url(apr_pool_t *p, const char *uri,
1247 request_rec *r)
1248{
1249 unsigned port = ap_get_server_port(r);
1250 const char *host = ap_get_server_name_for_url(r);
1251
1252 if (ap_is_default_port(port, r)) {
1253 return apr_pstrcat(p, ap_http_scheme(r), "://", host, uri, NULL);
1254 }
1255
1256 return apr_psprintf(p, "%s://%s:%u%s", ap_http_scheme(r), host, port, uri);
1257}
1258
1259AP_DECLARE(apr_off_t) ap_get_limit_req_body(const request_rec *r)
1260{

Callers 12

dav_createdFunction · 0.85
md_require_https_maybeFunction · 0.85
balancer_display_pageFunction · 0.85
proxy_send_dir_filterFunction · 0.85
imap_urlFunction · 0.85
check_spelingFunction · 0.85
translate_alias_redirFunction · 0.85
fixup_redirFunction · 0.85
fixup_dirFunction · 0.85
map_linkFunction · 0.85
req_construct_urlFunction · 0.85

Calls 2

ap_get_server_portFunction · 0.85

Tested by

no test coverage detected