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

Function set_negative_caching_list

src/proxy/http/HttpConfig.cc:667–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static bool
668set_negative_caching_list(const char *name, RecDataT dtype, RecData data, HttpConfigParams *c, bool update)
669{
670 bool ret = false;
671 HttpStatusBitset set;
672
673 // values from proxy.config.http.negative_caching_list
674 if (0 == strcasecmp("proxy.config.http.negative_caching_list", name) && RECD_STRING == dtype && data.rec_string) {
675 // parse the list of status codes
676 set = parse_http_status_code_list({data.rec_string, strlen(data.rec_string)});
677 }
678
679 // set the return value
680 if (set != c->negative_caching_list) {
681 c->negative_caching_list = set;
682 ret = ret || update;
683 }
684
685 return ret;
686}
687
688// Method of getting the status code bitset
689static int

Callers 2

negative_caching_list_cbFunction · 0.85

Calls 2

strcasecmpFunction · 0.85

Tested by

no test coverage detected