wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred
| 124 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 125 | // remap next hop strategy is preferred |
| 126 | inline static bool |
| 127 | bypass_ok(HttpTransact::State *s) |
| 128 | { |
| 129 | url_mapping *mp = s->url_map.getMapping(); |
| 130 | if (s->response_action.handled) { |
| 131 | return s->response_action.action.goDirect; |
| 132 | } else if (mp && mp->strategy) { |
| 133 | // remap strategies do not support the TSHttpTxnParentProxySet API. |
| 134 | return mp->strategy->go_direct; |
| 135 | } else if (s->parent_params) { |
| 136 | return s->parent_result.bypass_ok(); |
| 137 | } |
| 138 | return false; |
| 139 | } |
| 140 | |
| 141 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 142 | // remap next hop strategy is preferred |
no test coverage detected