ConditionStatus
| 42 | |
| 43 | // ConditionStatus |
| 44 | void |
| 45 | ConditionStatus::initialize(Parser &p) |
| 46 | { |
| 47 | Condition::initialize(p); |
| 48 | MatcherType *match = new MatcherType(_cond_op); |
| 49 | |
| 50 | match->set(static_cast<TSHttpStatus>(strtol(p.get_arg().c_str(), nullptr, 10)), mods()); |
| 51 | _matcher = match; |
| 52 | |
| 53 | require_resources(RSRC_SERVER_RESPONSE_HEADERS); |
| 54 | require_resources(RSRC_CLIENT_RESPONSE_HEADERS); |
| 55 | require_resources(RSRC_RESPONSE_STATUS); |
| 56 | } |
| 57 | |
| 58 | void |
| 59 | ConditionStatus::initialize_hooks() |