| 5149 | }; |
| 5150 | |
| 5151 | PROXY_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 | |
| 5169 | static APR_INLINE int ap_filter_should_yield(ap_filter_t *f) |
| 5170 | { |
no test coverage detected