| 1244 | } |
| 1245 | |
| 1246 | AP_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 | |
| 1259 | AP_DECLARE(apr_off_t) ap_get_limit_req_body(const request_rec *r) |
| 1260 | { |
no test coverage detected