wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred
| 283 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 284 | // remap next hop strategy is preferred |
| 285 | inline static bool |
| 286 | parentExists(HttpTransact::State *s) |
| 287 | { |
| 288 | url_mapping *mp = s->url_map.getMapping(); |
| 289 | if (s->response_action.handled) { |
| 290 | return s->response_action.action.nextHopExists; |
| 291 | } else if (mp && mp->strategy) { |
| 292 | return mp->strategy->nextHopExists(reinterpret_cast<TSHttpTxn>(s->state_machine)); |
| 293 | } else if (s->parent_params) { |
| 294 | return s->parent_params->parentExists(&s->request_data); |
| 295 | } else { |
| 296 | return false; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 301 | // remap next hop strategy is preferred |
no test coverage detected