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

Function set_negative_revalidating_list

src/proxy/http/HttpConfig.cc:708–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708static bool
709set_negative_revalidating_list(const char *name, RecDataT dtype, RecData data, HttpConfigParams *c, bool update)
710{
711 bool ret = false;
712 HttpStatusBitset set;
713
714 // values from proxy.config.http.negative_revalidating_list
715 if (0 == strcasecmp("proxy.config.http.negative_revalidating_list", name) && RECD_STRING == dtype && data.rec_string) {
716 // parse the list of status codes
717 set = parse_http_status_code_list({data.rec_string, strlen(data.rec_string)});
718 }
719
720 // set the return value
721 if (set != c->negative_revalidating_list) {
722 c->negative_revalidating_list = set;
723 ret = ret || update;
724 }
725
726 return ret;
727}
728
729// Method of getting the status code bitset
730static int

Callers 2

Calls 2

strcasecmpFunction · 0.85

Tested by

no test coverage detected