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

Function should_skip_this_obj

plugins/slice/slice.cc:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48TSCont global_read_resp_hdr_contp;
49
50static bool
51should_skip_this_obj(TSHttpTxn txnp, Config *const config)
52{
53 int len = 0;
54 char *const urlstr = TSHttpTxnEffectiveUrlStringGet(txnp, &len);
55
56 if (!config->isKnownLargeObj({urlstr, static_cast<size_t>(len)})) {
57 DEBUG_LOG("Not a known large object, not slicing: %.*s", len, urlstr);
58 return true;
59 }
60
61 return false;
62}
63
64bool
65read_request(TSHttpTxn txnp, Config *const config, TSCont read_resp_hdr_contp)

Callers 1

read_requestFunction · 0.85

Calls 2

isKnownLargeObjMethod · 0.80

Tested by

no test coverage detected