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

Function getUri

plugins/cachekey/cachekey.cc:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static String
177getUri(TSMBuffer buf, TSMLoc url)
178{
179 String uri;
180 int uriLen;
181 const char *uriPtr = TSUrlStringGet(buf, url, &uriLen);
182 if (nullptr != uriPtr && 0 != uriLen) {
183 uri.assign(uriPtr, uriLen);
184 TSfree((void *)uriPtr);
185 } else {
186 CacheKeyError("failed to get URI");
187 }
188 return uri;
189}
190
191static String
192getCanonicalUrl(TSMBuffer buf, TSMLoc url, bool canonicalPrefix, bool provideDefaultKey)

Callers 3

CacheKeyMethod · 0.85
appendPrefixMethod · 0.85
appendPathMethod · 0.85

Calls 3

TSUrlStringGetFunction · 0.85
TSfreeFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected