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

Method getEffectiveUrl

src/tscpp/api/Transaction.cc:256–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256string
257Transaction::getEffectiveUrl()
258{
259 string ret_val;
260 int length = 0;
261 char *buf = TSHttpTxnEffectiveUrlStringGet(state_->txn_, &length);
262 if (buf && length) {
263 ret_val.assign(buf, length);
264 }
265
266 if (buf) {
267 TSfree(buf);
268 }
269
270 return ret_val;
271}
272
273bool
274Transaction::setCacheUrl(const string &cache_url)

Callers

nothing calls this directly

Calls 3

TSfreeFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected