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

Function proxy_fdpass_canon

modules/proxy/mod_proxy_fdpass.c:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29module AP_MODULE_DECLARE_DATA proxy_fdpass_module;
30
31static int proxy_fdpass_canon(request_rec *r, char *url)
32{
33 const char *path;
34
35 if (ap_cstr_casecmpn(url, "fd://", 5) == 0) {
36 url += 5;
37 }
38 else {
39 return DECLINED;
40 }
41
42 path = ap_server_root_relative(r->pool, url);
43
44 r->filename = apr_pstrcat(r->pool, "proxy:fd://", path, NULL);
45
46 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01151)
47 "set r->filename to %s", r->filename);
48 return OK;
49}
50
51static apr_status_t get_socket_from_path(apr_pool_t *p,
52 const char* path,

Callers

nothing calls this directly

Calls 2

ap_cstr_casecmpnFunction · 0.85
ap_server_root_relativeFunction · 0.85

Tested by

no test coverage detected