wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred
| 141 | // wrapper to choose between a remap next hop strategy or use parent.config |
| 142 | // remap next hop strategy is preferred |
| 143 | inline static bool |
| 144 | is_api_result(HttpTransact::State *s) |
| 145 | { |
| 146 | bool r = false; |
| 147 | url_mapping *mp = s->url_map.getMapping(); |
| 148 | |
| 149 | if (mp && mp->strategy) { |
| 150 | // remap strategies do not support the TSHttpTxnParentProxySet API. |
| 151 | r = false; |
| 152 | } else if (s->parent_params) { |
| 153 | r = s->parent_result.is_api_result(); |
| 154 | } |
| 155 | return r; |
| 156 | } |
| 157 | |
| 158 | // wrapper to get the max_retries. |
| 159 | // Does NOT check the strategy; if strategy exists, strategy->responseIsRetryable should be called instead. |
no test coverage detected