Lines Matching refs:result
111 policy_result result)
116 if (conf && result != policy_ignore && conf->environment) {
121 if (result == policy_enforce) {
132 return result;
135 static void handle_policy(request_rec *r, policy_result result,
141 switch (result) {
196 policy_result result = check_enabled(f->r, conf, conf->type_action);
198 if (result != policy_ignore) {
240 result,
258 * - Only applies to 2xx result codes
267 policy_result result = check_enabled(r, conf, conf->length_action);
269 if (result != policy_ignore && r->status >= 200 && r->status < 300
274 handle_policy(r, result, "Content-Length should be present",
314 policy_result result = check_enabled(r, conf, conf->keepalive_action);
316 if (result != policy_ignore && r->connection->keepalive != AP_CONN_CLOSE
327 handle_policy(r, result, "Keepalive should be possible (supply Content-Length or HTTP/1.1 Transfer-Encoding)",
374 policy_result result = check_enabled(f->r, conf, conf->vary_action);
376 if (result != policy_ignore) {
389 handle_policy(f->r, result, apr_psprintf(f->r->pool,
417 policy_result result = check_enabled(f->r, conf, conf->validation_action);
419 if (result != policy_ignore) {
465 handle_policy(f->r, result, error, conf->validation_url, bb,
483 * and the response code is unexpected given the match. A result code is unexpected
493 policy_result result = check_enabled(f->r, conf, conf->conditional_action);
495 if (result != policy_ignore) {
502 result,
534 policy_result result = check_enabled(f->r, conf, conf->nocache_action);
536 if (result != policy_ignore) {
611 handle_policy(r, result, "Response is marked uncacheable",
642 policy_result result = check_enabled(f->r, conf, conf->maxage_action);
644 if (result != policy_ignore) {
709 result,
729 result,
755 result,
768 result,
781 result,
796 handle_policy(r, result, "Response has no explicit freshness lifetime (s-maxage, max-age or Expires/Date)",
835 policy_result result = check_enabled(r, conf, conf->version_action);
837 if (result != policy_ignore) {
841 handle_policy(f->r, result, apr_psprintf(f->r->pool,
951 policy_result *result)
954 *result = policy_enforce;
957 *result = policy_log;
960 *result = policy_ignore;