MCPcopy Create free account
hub / github.com/apache/trafficserver / parentExists

Function parentExists

src/proxy/http/HttpTransact.cc:285–298  ·  view source on GitHub ↗

wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred

Source from the content-addressed store, hash-verified

283// wrapper to choose between a remap next hop strategy or use parent.config
284// remap next hop strategy is preferred
285inline static bool
286parentExists(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

Callers 1

HandleRequestMethod · 0.85

Calls 3

getMappingMethod · 0.80
nextHopExistsMethod · 0.80
parentExistsMethod · 0.80

Tested by

no test coverage detected