wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred
| 267 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 268 | // remap next hop strategy is preferred |
| 269 | inline static void |
| 270 | markParentUp(HttpTransact::State *s) |
| 271 | { |
| 272 | url_mapping *mp = s->url_map.getMapping(); |
| 273 | if (s->response_action.handled) { |
| 274 | // Do nothing. If a plugin handled the response, let it handle markdown |
| 275 | } else if (mp && mp->strategy) { |
| 276 | mp->strategy->markNextHop(reinterpret_cast<TSHttpTxn>(s->state_machine), s->parent_result.hostname, s->parent_result.port, |
| 277 | NH_MARK_UP); |
| 278 | } else if (s->parent_params) { |
| 279 | s->parent_params->markParentUp(&s->parent_result); |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 284 | // remap next hop strategy is preferred |
no test coverage detected