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

Function ap_proxy_port_of_scheme

modules/proxy/proxy_util.c:5151–5167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5149};
5150
5151PROXY_DECLARE(apr_port_t) ap_proxy_port_of_scheme(const char *scheme)
5152{
5153 if (scheme) {
5154 apr_port_t port;
5155 if ((port = apr_uri_port_of_scheme(scheme)) != 0) {
5156 return port;
5157 } else {
5158 proxy_schemes_t *pscheme;
5159 for (pscheme = pschemes; pscheme->name != NULL; ++pscheme) {
5160 if (ap_cstr_casecmp(scheme, pscheme->name) == 0) {
5161 return pscheme->default_port;
5162 }
5163 }
5164 }
5165 }
5166 return 0;
5167}
5168
5169static APR_INLINE int ap_filter_should_yield(ap_filter_t *f)
5170{

Callers 6

proxy_fcgi_canonFunction · 0.85
hc_get_hcworkerFunction · 0.85
proxy_ajp_canonFunction · 0.85
proxy_http2_canonFunction · 0.85

Calls 1

ap_cstr_casecmpFunction · 0.85

Tested by

no test coverage detected